mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
expireIfNeeded() comment: claim -> pretend.
This commit is contained in:
parent
e09c8c102a
commit
888039ca82
2
src/db.c
2
src/db.c
@ -1103,7 +1103,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
|
||||
/* Don't expire anything while loading. It will be done later. */
|
||||
if (server.loading) return 0;
|
||||
|
||||
/* If we are in the context of a Lua script, we claim that time is
|
||||
/* If we are in the context of a Lua script, we pretend that time is
|
||||
* blocked to when the Lua script started. This way a key can expire
|
||||
* only the first time it is accessed and not in the middle of the
|
||||
* script execution, making propagation to slaves / AOF consistent.
|
||||
|
Loading…
Reference in New Issue
Block a user