mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
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…
x
Reference in New Issue
Block a user