Skip to content

Commit

Permalink
disable unsupported rocksdb option
Browse files Browse the repository at this point in the history
  • Loading branch information
YangKian committed Jul 3, 2024
1 parent b9e3173 commit 7f94aaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion hstream/src/HStream/Server/CacheStore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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{..}
Expand Down
4 changes: 2 additions & 2 deletions hstream/src/HStream/Server/Initialization.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 7f94aaf

Please sign in to comment.