mirror of
https://github.com/fluencelabs/redis
synced 2025-06-25 06:51:32 +00:00
VM/direct-saving fixes
This commit is contained in:
@ -465,6 +465,7 @@ unsigned long estimateObjectIdleTime(robj *o) {
|
||||
robj *objectCommandLookup(redisClient *c, robj *key) {
|
||||
dictEntry *de;
|
||||
|
||||
if (server.vm_enabled) lookupKeyRead(c->db,key);
|
||||
if ((de = dictFind(c->db->dict,key->ptr)) == NULL) return NULL;
|
||||
return (robj*) dictGetEntryVal(de);
|
||||
}
|
||||
|
Reference in New Issue
Block a user