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