Skip to content

Commit

Permalink
disabling custom block_cache in secondary rocksDb
Browse files Browse the repository at this point in the history
  • Loading branch information
dungeon-master-666 committed Mar 15, 2024
1 parent 319c67d commit 534570d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tddb/td/db/RocksDbSecondary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ Result<RocksDbSecondary> RocksDbSecondary::open(std::string path) {
static auto cache = rocksdb::NewLRUCache(1 << 30);

rocksdb::BlockBasedTableOptions table_options;
table_options.block_cache = cache;
// commenting this line because in recent rocksdb version it leads to NotFound error (file not in archive slice)
// table_options.block_cache = cache;
options.table_factory.reset(rocksdb::NewBlockBasedTableFactory(table_options));

options.create_if_missing = false;
Expand Down

0 comments on commit 534570d

Please sign in to comment.