From 003bfb6a0448db8d05ca7fb9a9498542ce592bc8 Mon Sep 17 00:00:00 2001 From: John Sully Date: Mon, 17 Feb 2020 21:50:45 -0500 Subject: [PATCH] Tune rocksdb Former-commit-id: 95d91b1ff8c8080dfcbf59e51d3eff73d27dcfb5 --- src/storage/rocksdb.cpp | 1 - src/storage/rocksdbfactory.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/src/storage/rocksdb.cpp b/src/storage/rocksdb.cpp index d7598b76c..386ae7397 100644 --- a/src/storage/rocksdb.cpp +++ b/src/storage/rocksdb.cpp @@ -109,7 +109,6 @@ RocksDBStorageProvider::~RocksDBStorageProvider() rocksdb::WriteOptions RocksDBStorageProvider::WriteOptions() const { auto opt = rocksdb::WriteOptions(); - opt.disableWAL = true; return opt; } diff --git a/src/storage/rocksdbfactory.cpp b/src/storage/rocksdbfactory.cpp index 9d4a52afc..8c5cacef2 100644 --- a/src/storage/rocksdbfactory.cpp +++ b/src/storage/rocksdbfactory.cpp @@ -49,7 +49,6 @@ RocksDBStorageFactory::RocksDBStorageFactory(const char *dbfile, int dbnum) table_options.cache_index_and_filter_blocks = true; table_options.pin_l0_filter_and_index_blocks_in_cache = true; options.table_factory.reset(NewBlockBasedTableFactory(table_options)); - table_options.filter_policy.reset(rocksdb::NewBloomFilterPolicy(10, false)); options.table_factory.reset( rocksdb::NewBlockBasedTableFactory(table_options));