Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b00c4ffa
Commit
b00c4ffa
authored
Feb 27, 2018
by
antirez
Browse files
expireIfNeeded() comment: claim -> pretend.
parent
956350ef
Changes
1
Show whitespace changes
Inline
Side-by-side
src/db.c
View file @
b00c4ffa
...
@@ -1104,7 +1104,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment