add assert to ensure correctness
This commit is contained in:
1 parent
9bfb89bfd8
commit
ac1bd8eec4
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user