From 5249668debdb02e3d10840be051fa072841be875 Mon Sep 17 00:00:00 2001 From: Malavan Sotheeswaran Date: Wed, 4 Oct 2023 17:48:42 -0700 Subject: [PATCH] remove debug logs --- src/storage/rocksdb.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/storage/rocksdb.cpp b/src/storage/rocksdb.cpp index a60c7c1a2..1932c4b3b 100644 --- a/src/storage/rocksdb.cpp +++ b/src/storage/rocksdb.cpp @@ -214,10 +214,8 @@ bool RocksDBStorageProvider::enumerate_hashslot(callback fn, unsigned int hashsl bool fContinue = fn(it->key().data()+sizeof(unsigned int), it->key().size()-sizeof(unsigned int), it->value().data(), it->value().size()); if (!fContinue) break; - serverLog(LL_WARNING, "%d %d %d", hashslot, (unsigned int)*it->key().data(), (unsigned int)*prefix.c_str()); - serverLog(LL_WARNING, "Found key %d of %d with len %d: %.*s", count, g_pserver->cluster->slots_keys_count[hashslot], (int)it->key().size()-sizeof(unsigned int), (int)it->key().size()-sizeof(unsigned int), it->key().data()+sizeof(unsigned int)); } - bool full_iter = !it->Valid() || (strncmp(it->key().data(),prefix.c_str(),2) != 0); + bool full_iter = !it->Valid() || (*(unsigned int *)it->key().data() != hashslot); if (full_iter && count != g_pserver->cluster->slots_keys_count[hashslot]) { printf("WARNING: rocksdb hashslot count mismatch");