mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
fix time() instead of mstime() in expireIfNeeded
This commit is contained in:
parent
a323870450
commit
024f213b12
2
src/db.c
2
src/db.c
@ -518,7 +518,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
|
||||
* that is, 0 if we think the key should be still valid, 1 if
|
||||
* we think the key is expired at this time. */
|
||||
if (server.masterhost != NULL) {
|
||||
return time(NULL) > when;
|
||||
return mstime() > when;
|
||||
}
|
||||
|
||||
/* Return when this key has not expired */
|
||||
|
Loading…
Reference in New Issue
Block a user