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
24430cb8
Commit
24430cb8
authored
May 13, 2011
by
antirez
Committed by
antirez
May 13, 2011
Browse files
Fix for DEBUG DIGEST, key may expire on lookup
parent
604d26ff
Changes
1
Show whitespace changes
Inline
Side-by-side
src/debug.c
View file @
24430cb8
...
@@ -101,6 +101,11 @@ void computeDatasetDigest(unsigned char *final) {
...
@@ -101,6 +101,11 @@ void computeDatasetDigest(unsigned char *final) {
/* Make sure the key is loaded if VM is active */
/* Make sure the key is loaded if VM is active */
o
=
lookupKeyRead
(
db
,
keyobj
);
o
=
lookupKeyRead
(
db
,
keyobj
);
if
(
o
==
NULL
)
{
/* Key expired on lookup? Try the next one. */
decrRefCount
(
keyobj
);
continue
;
}
aux
=
htonl
(
o
->
type
);
aux
=
htonl
(
o
->
type
);
mixDigest
(
digest
,
&
aux
,
sizeof
(
aux
));
mixDigest
(
digest
,
&
aux
,
sizeof
(
aux
));
...
...
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