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
77423026
Commit
77423026
authored
Jul 03, 2009
by
antirez
Browse files
bugfix: EXPIRE now propagates to the Slave.
parent
f0dec43b
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
77423026
...
...
@@ -3758,10 +3758,12 @@ static void expireCommand(redisClient *c) {
return
;
}
else
{
time_t
when
=
time
(
NULL
)
+
seconds
;
if
(
setExpire
(
c
->
db
,
c
->
argv
[
1
],
when
))
if
(
setExpire
(
c
->
db
,
c
->
argv
[
1
],
when
))
{
addReply
(
c
,
shared
.
cone
);
else
server
.
dirty
++
;
}
else
{
addReply
(
c
,
shared
.
czero
);
}
return
;
}
}
...
...
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