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
4e19358d
Commit
4e19358d
authored
Aug 18, 2020
by
guybe7
Committed by
Oran Agra
Sep 01, 2020
Browse files
PERSIST should signalModifiedKey (Like EXPIRE does) (#7671)
(cherry picked from commit
b87c2880
)
parent
43bc1ea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/expire.c
View file @
4e19358d
...
@@ -594,6 +594,7 @@ void pttlCommand(client *c) {
...
@@ -594,6 +594,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
]))
{
signalModifiedKey
(
c
,
c
->
db
,
c
->
argv
[
1
]);
notifyKeyspaceEvent
(
NOTIFY_GENERIC
,
"persist"
,
c
->
argv
[
1
],
c
->
db
->
id
);
notifyKeyspaceEvent
(
NOTIFY_GENERIC
,
"persist"
,
c
->
argv
[
1
],
c
->
db
->
id
);
addReply
(
c
,
shared
.
cone
);
addReply
(
c
,
shared
.
cone
);
server
.
dirty
++
;
server
.
dirty
++
;
...
...
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