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
d0d72c19
Commit
d0d72c19
authored
May 10, 2011
by
antirez
Browse files
use safe Dict iteration in DEBUG DIGEST
parent
da49700d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/debug.c
View file @
d0d72c19
...
...
@@ -80,7 +80,7 @@ void computeDatasetDigest(unsigned char *final) {
redisDb
*
db
=
server
.
db
+
j
;
if
(
dictSize
(
db
->
dict
)
==
0
)
continue
;
di
=
dictGetIterator
(
db
->
dict
);
di
=
dictGet
Safe
Iterator
(
db
->
dict
);
/* hash the DB id, so the same dataset moved in a different
* DB will lead to a different digest */
...
...
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