From b518a83525e7407d38c413f73a338996bdac6b64 Mon Sep 17 00:00:00 2001 From: Premysl Hruby Date: Wed, 28 Mar 2012 12:03:32 +0200 Subject: [PATCH] fix mstime() ommited while comparing if key is already expired --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.c b/src/db.c index 73ee9166..b8c87b4f 100644 --- a/src/db.c +++ b/src/db.c @@ -529,7 +529,7 @@ void expireGenericCommand(redisClient *c, long long offset, int unit) { * * Instead we take the other branch of the IF statement setting an expire * (possibly in the past) and wait for an explicit DEL from the master. */ - if (milliseconds <= 0 && !server.loading && !server.masterhost) { + if (milliseconds <= mstime() && !server.loading && !server.masterhost) { robj *aux; redisAssertWithInfo(c,key,dbDelete(c->db,key)); -- 2.45.2