From 4a3125b7218b802ac8906423a932fe4059fa029f Mon Sep 17 00:00:00 2001 From: Malavan Sotheeswaran Date: Wed, 4 Oct 2023 17:50:46 -0700 Subject: [PATCH] update prefix extractor --- src/storage/rocksdbfactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/rocksdbfactory.cpp b/src/storage/rocksdbfactory.cpp index 7087a0136..f0083d8d7 100644 --- a/src/storage/rocksdbfactory.cpp +++ b/src/storage/rocksdbfactory.cpp @@ -72,7 +72,7 @@ RocksDBStorageFactory::RocksDBStorageFactory(const char *dbfile, int dbnum, cons rocksdb::DB *db = nullptr; auto options = RocksDbOptions(); - options.prefix_extractor.reset(rocksdb::NewFixedPrefixTransform(2)); + options.prefix_extractor.reset(rocksdb::NewFixedPrefixTransform(sizeof(unsigned int))); for (int idb = 0; idb < dbnum; ++idb) {