Commit 24430cb8 authored by antirez's avatar antirez Committed by antirez
Browse files

Fix for DEBUG DIGEST, key may expire on lookup

parent 604d26ff
...@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment