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
024f213b
Commit
024f213b
authored
Mar 27, 2012
by
Premysl Hruby
Browse files
fix time() instead of mstime() in expireIfNeeded
parent
a3238704
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
024f213b
...
...
@@ -518,7 +518,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
* that is, 0 if we think the key should be still valid, 1 if
* we think the key is expired at this time. */
if
(
server
.
masterhost
!=
NULL
)
{
return
time
(
NULL
)
>
when
;
return
ms
time
()
>
when
;
}
/* Return when this key has not expired */
...
...
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