mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
expireIfNeeded() comment: claim -> pretend.
This commit is contained in:
parent
956350ef89
commit
b00c4ffab5
2
src/db.c
2
src/db.c
@ -1104,7 +1104,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
|
|||||||
/* Don't expire anything while loading. It will be done later. */
|
/* Don't expire anything while loading. It will be done later. */
|
||||||
if (server.loading) return 0;
|
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
|
* 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
|
* only the first time it is accessed and not in the middle of the
|
||||||
* script execution, making propagation to slaves / AOF consistent.
|
* script execution, making propagation to slaves / AOF consistent.
|
||||||
|
Loading…
Reference in New Issue
Block a user