Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
17785f40
Commit
17785f40
authored
Oct 28, 2013
by
antirez
Browse files
dictScan(): empty hash table requires special handling.
parent
7f063b1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
17785f40
...
@@ -754,6 +754,8 @@ unsigned long dictScan(dict *d,
...
@@ -754,6 +754,8 @@ unsigned long dictScan(dict *d,
unsigned
long
s0
,
s1
;
unsigned
long
s0
,
s1
;
unsigned
long
m0
,
m1
;
unsigned
long
m0
,
m1
;
if
(
dictSize
(
d
)
==
0
)
return
0
;
if
(
!
dictIsRehashing
(
d
))
{
if
(
!
dictIsRehashing
(
d
))
{
t0
=
&
(
d
->
ht
[
0
]);
t0
=
&
(
d
->
ht
[
0
]);
m0
=
t0
->
sizemask
;
m0
=
t0
->
sizemask
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment