mirror of
https://github.com/fluencelabs/redis
synced 2025-06-19 04:01:22 +00:00
Fix for DEBUG DIGEST, key may expire on lookup
This commit is contained in:
@ -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));
|
||||||
|
Reference in New Issue
Block a user