mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
fix mstime() ommited while comparing if key is already expired
This commit is contained in:
parent
c35b4e845b
commit
d48d1309c6
2
src/db.c
2
src/db.c
@ -540,7 +540,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));
|
||||
|
Loading…
Reference in New Issue
Block a user