summaryrefslogtreecommitdiff
path: root/src/dict.c
diff options
context:
space:
mode:
authorpeterpaule <peterpaule@peterpauledeMacBook-Pro.local>2018-07-16 11:28:22 +0800
committerpeterpaule <peterpaule@peterpauledeMacBook-Pro.local>2018-07-16 11:28:22 +0800
commit816fc6cbc67957baae6c2fa8332222da8bf789b7 (patch)
treeb55b380858a1aa9915773fbe0474e15b2b3d4cee /src/dict.c
parent84b281209a653f8afe5b106ab44d8339fd798823 (diff)
downloadredis-816fc6cbc67957baae6c2fa8332222da8bf789b7.tar.gz
remove one ineffective loop in dictGetSomeKeys.
Diffstat (limited to 'src/dict.c')
-rw-r--r--src/dict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dict.c b/src/dict.c
index 97e636805..4db758618 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];