mirror of https://mirror.osredm.com/root/redis.git
dict.c: reset emptylen when bucket is not empty.
Fixed by @oranagra, thank you.
This commit is contained in:
parent
edda00b902
commit
8ddc14523f
|
@ -811,6 +811,7 @@ unsigned int dictGetSomeKeys(dict *d, dictEntry **des, unsigned int count) {
|
||||||
emptylen = 0;
|
emptylen = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
emptylen = 0;
|
||||||
while (he) {
|
while (he) {
|
||||||
/* Collect all the elements of the buckets found non
|
/* Collect all the elements of the buckets found non
|
||||||
* empty while iterating. */
|
* empty while iterating. */
|
||||||
|
|
Loading…
Reference in New Issue