提交 17785f40 编写于 作者: A antirez

dictScan(): empty hash table requires special handling.

上级 7f063b1c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册