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
d48d1309
Commit
d48d1309
authored
Mar 28, 2012
by
Premysl Hruby
Committed by
antirez
Apr 05, 2012
Browse files
fix mstime() ommited while comparing if key is already expired
parent
c35b4e84
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
d48d1309
...
...
@@ -540,7 +540,7 @@ void expireGenericCommand(redisClient *c, long long offset, int unit) {
*
* Instead we take the other branch of the IF statement setting an expire
* (possibly in the past) and wait for an explicit DEL from the master. */
if
(
milliseconds
<=
0
&&
!
server
.
loading
&&
!
server
.
masterhost
)
{
if
(
milliseconds
<=
mstime
()
&&
!
server
.
loading
&&
!
server
.
masterhost
)
{
robj
*
aux
;
redisAssertWithInfo
(
c
,
key
,
dbDelete
(
c
->
db
,
key
));
...
...
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