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; } }