VM/direct-saving fixes

This commit is contained in:
antirez
2011-04-20 17:48:46 +02:00
parent e8852d782d
commit 760dec3a6c
4 changed files with 23 additions and 15 deletions

View File

@ -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);
}