mirror of
https://github.com/fluencelabs/redis
synced 2025-05-01 21:42:13 +00:00
Fix for DEBUG DIGEST, key may expire on lookup
This commit is contained in:
parent
cd128d2882
commit
cc8a0f898b
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user