From 756ab91830533c0d4b6d065c12ea41a81b925d59 Mon Sep 17 00:00:00 2001 From: Malavan Sotheeswaran Date: Wed, 4 Oct 2023 17:01:06 -0700 Subject: [PATCH] stored full unsigned int anyways --- src/storage/rocksdb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/rocksdb.cpp b/src/storage/rocksdb.cpp index fdfb94dff..77440ebfb 100644 --- a/src/storage/rocksdb.cpp +++ b/src/storage/rocksdb.cpp @@ -208,7 +208,7 @@ bool RocksDBStorageProvider::enumerate_hashslot(callback fn, unsigned int hashsl for (it->Seek(prefix); it->Valid(); it->Next()) { if (FInternalKey(it->key().data(), it->key().size())) continue; - if (strncmp(it->key().data(),prefix.c_str(),sizeof(unsigned int)) != 0) + if ((unsigned int)*it->key().data() != hashslot) break; ++count; bool fContinue = fn(it->key().data()+sizeof(unsigned int), it->key().size()-sizeof(unsigned int), it->value().data(), it->value().size());