Skip to content

Commit

Permalink
Fix "show global status" for RocksDB stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonah Cohen authored and Gunnar Kudrjavets committed Jul 21, 2017
1 parent 08e43d7 commit 29d55e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/rocksdb/ha_rocksdb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ static uint64_t rocksdb_index_type;
static rocksdb::DBOptions init_db_options() {
rocksdb::DBOptions o;
o.create_if_missing = true;
o.statistics = rocksdb_stats;
return o;
}

Expand Down Expand Up @@ -969,6 +968,7 @@ static int rocksdb_init_func(void *p)
Primary_key_comparator::get_hashnr);

rocksdb_stats= rocksdb::CreateDBStatistics();
db_options.statistics = rocksdb_stats;

std::string rocksdb_db_name= "./rocksdb";

Expand Down

0 comments on commit 29d55e3

Please sign in to comment.