Review fixes

This commit is contained in:
Daniel Smith 2021-02-01 21:58:39 +00:00
parent ecf5c2b591
commit de700b83f2
2 changed files with 2 additions and 4 deletions

View File

@ -77,9 +77,7 @@ rocksdb::Options getOptions() {
bbOpts.block_cache = rocksdb::NewLRUCache(SERVER_KNOBS->ROCKSDB_BLOCK_CACHE_SIZE);
}
if (SERVER_KNOBS->ROCKSDB_BLOCK_CACHE_SIZE > 0 || SERVER_KNOBS->ROCKSDB_PREFIX_LEN > 0) {
options.table_factory.reset(rocksdb::NewBlockBasedTableFactory(bbOpts));
}
options.table_factory.reset(rocksdb::NewBlockBasedTableFactory(bbOpts));
return options;
}

View File

@ -324,7 +324,7 @@ void ServerKnobs::initialize(bool randomize, ClientKnobs* clientKnobs, bool isSi
init( ROCKSDB_UNSAFE_AUTO_FSYNC, false );
init( ROCKSDB_PERIODIC_COMPACTION_SECONDS, 0 );
init( ROCKSDB_PREFIX_LEN, 0 );
init( ROCKSDB_BLOCK_CACHE_SIZE, 0 );
init( ROCKSDB_BLOCK_CACHE_SIZE, 0 );
// Leader election
bool longLeaderElection = randomize && BUGGIFY;