Skip to content

Commit

Permalink
Fix: ExpireMember does not update MVCC timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSully committed Oct 16, 2019
1 parent 8f1295c commit f5210a8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/expire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,11 @@ void expireMemberCore(client *c, robj *key, robj *subkey, long long basetime, lo
when += basetime;

/* No key, return zero. */
dictEntry *de = dictFind(c->db->pdict, szFromObj(key));
if (de == NULL) {
addReply(c,shared.czero);
robj *val = lookupKeyWriteOrReply(c, key, shared.czero);
if (val == NULL) {
return;
}

robj *val = (robj*)dictGetVal(de);

switch (val->type)
{
case OBJ_SET:
Expand Down

0 comments on commit f5210a8

Please sign in to comment.