summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-02-27 16:37:37 +0100
committerantirez <antirez@gmail.com>2018-02-28 18:09:40 +0100
commit888039ca82e49d8a95b4f887fe89adceb717842f (patch)
tree7e2c838752af8fcc78efebe5208ad21a877ea554
parente09c8c102a6d5e6b7631226ddc74511337aaec36 (diff)
downloadredis-888039ca82e49d8a95b4f887fe89adceb717842f.tar.gz
expireIfNeeded() comment: claim -> pretend.
-rw-r--r--src/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.c b/src/db.c
index 7c88df973..e98a9fae3 100644
--- a/src/db.c
+++ b/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.