From 348c78c57f897f50abee2102005555fed9009149 Mon Sep 17 00:00:00 2001 From: Malavan Sotheeswaran Date: Thu, 5 Oct 2023 09:40:52 -0700 Subject: [PATCH] missed a 2 --- 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 f0083d8d7..af78e8361 100644 --- a/src/storage/rocksdbfactory.cpp +++ b/src/storage/rocksdbfactory.cpp @@ -196,7 +196,7 @@ IStorage *RocksDBStorageFactory::create(int db, key_load_iterator iter, void *pr printf("\tDatabase %d was not shutdown cleanly, recomputing metrics\n", db); fFirstRealKey = false; if (iter != nullptr) - iter(it->key().data()+2, it->key().size()-2, privdata); + iter(it->key().data()+sizeof(unsigned int), it->key().size()-sizeof(unsigned int), privdata); ++count; } }