From 7f94aafdceabcf45d5299353badd0109ccb2ac35 Mon Sep 17 00:00:00 2001 From: YangKian <1207783292@qq.com> Date: Wed, 3 Jul 2024 17:44:06 +0800 Subject: [PATCH] disable unsupported rocksdb option --- hstream/src/HStream/Server/CacheStore.hs | 1 - hstream/src/HStream/Server/Initialization.hs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hstream/src/HStream/Server/CacheStore.hs b/hstream/src/HStream/Server/CacheStore.hs index f6e252342..dc99652f2 100644 --- a/hstream/src/HStream/Server/CacheStore.hs +++ b/hstream/src/HStream/Server/CacheStore.hs @@ -136,7 +136,6 @@ initCacheStore CacheStore{..} = do totalRead <- newIORef 0 nextKeyToDump <- newIORef BS.empty atomicWriteIORef counter 0 - ST.cache_store_stat_erase statsHolder "cache_store" return $ Just Store{..} diff --git a/hstream/src/HStream/Server/Initialization.hs b/hstream/src/HStream/Server/Initialization.hs index 02b72d152..2b45c86d6 100644 --- a/hstream/src/HStream/Server/Initialization.hs +++ b/hstream/src/HStream/Server/Initialization.hs @@ -99,9 +99,9 @@ initializeServer opts@ServerOpts{..} gossipContext hh db_m = do } dbOption = def { RocksDB.createIfMissing = True - , RocksDB.maxBackgroundJobs = 6 + -- , RocksDB.maxBackgroundJobs = 6 , RocksDB.blockBasedTableOptions = tableOptions - , RocksDB.bytesPerSync = 1048576 + -- , RocksDB.bytesPerSync = 1048576 } let writeOption = def { RocksDB.disableWAL = True } -- readOption = def { RocksDB.readaheadSize = 64 * 1024 * 1024 }