Skip to content

Commit

Permalink
stored full unsigned int anyways
Browse files Browse the repository at this point in the history
  • Loading branch information
msotheeswaran-sc committed Oct 5, 2023
1 parent 8a1d648 commit 756ab91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/rocksdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 756ab91

Please sign in to comment.