From a5a736be732fade593019d8af4d0567ebab4886e Mon Sep 17 00:00:00 2001 From: John Sully Date: Thu, 6 Feb 2020 23:31:31 -0500 Subject: [PATCH] Fix issue #137 and #132 Former-commit-id: 050d58007f84e4f71b0ae8b053ae4d6fd5bb4ec7 --- src/db.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/db.cpp b/src/db.cpp index 605baaf40..9190d22f1 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -177,9 +177,8 @@ robj_roptr lookupKeyRead(redisDb *db, robj *key) { * Returns the linked value object if the key exists or NULL if the key * does not exist in the specified DB. */ robj *lookupKeyWrite(redisDb *db, robj *key) { + expireIfNeeded(db,key); robj *o = lookupKey(db,key,LOOKUP_UPDATEMVCC); - if (expireIfNeeded(db,key)) - o = NULL; return o; }