add assert to ensure correctness

This commit is contained in:
Malavan Sotheeswaran committed 2023-05-10 14:19:17 -07:00
1 parent 9bfb89bfd8
commit ac1bd8eec4
1 file changed
+1
+1
View File
@@ -206,6 +206,7 @@ bool RocksDBStorageProvider::enumerate_hashslot(callback fn, int hashslot) const
{
printf("WARNING: rocksdb hashslot count mismatch");
}
assert(!full_iter || count == g_pserver->cluster->slots_keys_count[hashslot]);
assert(it->status().ok()); // Check for any errors found during the scan
return full_iter;
}