mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
dictScan(): empty hash table requires special handling.
This commit is contained in:
parent
cd8cb49dc4
commit
dfeaa84d46
@ -754,6 +754,8 @@ unsigned long dictScan(dict *d,
|
||||
unsigned long s0, s1;
|
||||
unsigned long m0, m1;
|
||||
|
||||
if (dictSize(d) == 0) return 0;
|
||||
|
||||
if (!dictIsRehashing(d)) {
|
||||
t0 = &(d->ht[0]);
|
||||
m0 = t0->sizemask;
|
||||
|
Loading…
x
Reference in New Issue
Block a user