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
1907e0f1
Commit
1907e0f1
authored
Mar 29, 2020
by
Guy Benoish
Committed by
antirez
Apr 07, 2020
Browse files
PERSIST should notify a keyspace event
parent
c35a5316
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/expire.c
View file @
1907e0f1
...
@@ -590,6 +590,7 @@ void pttlCommand(client *c) {
...
@@ -590,6 +590,7 @@ void pttlCommand(client *c) {
void
persistCommand
(
client
*
c
)
{
void
persistCommand
(
client
*
c
)
{
if
(
lookupKeyWrite
(
c
->
db
,
c
->
argv
[
1
]))
{
if
(
lookupKeyWrite
(
c
->
db
,
c
->
argv
[
1
]))
{
if
(
removeExpire
(
c
->
db
,
c
->
argv
[
1
]))
{
if
(
removeExpire
(
c
->
db
,
c
->
argv
[
1
]))
{
notifyKeyspaceEvent
(
NOTIFY_GENERIC
,
"persist"
,
c
->
argv
[
1
],
c
->
db
->
id
);
addReply
(
c
,
shared
.
cone
);
addReply
(
c
,
shared
.
cone
);
server
.
dirty
++
;
server
.
dirty
++
;
}
else
{
}
else
{
...
...
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