mirror of
https://github.com/fluencelabs/redis
synced 2025-06-18 11:41:20 +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 */
|
||||
o = lookupKeyRead(db,keyobj);
|
||||
if (o == NULL) {
|
||||
/* Key expired on lookup? Try the next one. */
|
||||
decrRefCount(keyobj);
|
||||
continue;
|
||||
}
|
||||
|
||||
aux = htonl(o->type);
|
||||
mixDigest(digest,&aux,sizeof(aux));
|
||||
|
Reference in New Issue
Block a user