From 816fc6cbc67957baae6c2fa8332222da8bf789b7 Mon Sep 17 00:00:00 2001 From: peterpaule Date: Mon, 16 Jul 2018 11:28:22 +0800 Subject: [PATCH] remove one ineffective loop in dictGetSomeKeys. --- src/dict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dict.c b/src/dict.c index 97e63680..4db75861 100644 --- a/src/dict.c +++ b/src/dict.c @@ -706,7 +706,7 @@ unsigned int dictGetSomeKeys(dict *d, dictEntry **des, unsigned int count) { * the current rehashing index, so we jump if possible. * (this happens when going from big to small table). */ if (i >= d->ht[1].size) i = d->rehashidx; - continue; + else continue; } if (i >= d->ht[j].size) continue; /* Out of range for this table. */ dictEntry *he = d->ht[j].table[i];