Fix issue #137 and #132

Former-commit-id: 050d58007f84e4f71b0ae8b053ae4d6fd5bb4ec7
This commit is contained in:
John Sully 2020-02-06 23:31:31 -05:00
parent a21c81c30e
commit a5a736be73

View File

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