mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
remove one ineffective loop in dictGetSomeKeys.
This commit is contained in:
parent
84b281209a
commit
816fc6cbc6
@ -706,7 +706,7 @@ unsigned int dictGetSomeKeys(dict *d, dictEntry **des, unsigned int count) {
|
|||||||
* the current rehashing index, so we jump if possible.
|
* the current rehashing index, so we jump if possible.
|
||||||
* (this happens when going from big to small table). */
|
* (this happens when going from big to small table). */
|
||||||
if (i >= d->ht[1].size) i = d->rehashidx;
|
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. */
|
if (i >= d->ht[j].size) continue; /* Out of range for this table. */
|
||||||
dictEntry *he = d->ht[j].table[i];
|
dictEntry *he = d->ht[j].table[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user