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
b87c2880
"vscode:/vscode.git/clone" did not exist on "b147cb9e1ac77e021228f3343a59db1da7c88789"
Unverified
Commit
b87c2880
authored
Aug 18, 2020
by
guybe7
Committed by
GitHub
Aug 18, 2020
Browse files
PERSIST should signalModifiedKey (Like EXPIRE does) (#7671)
parent
0f741a9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/expire.c
View file @
b87c2880
...
...
@@ -594,6 +594,7 @@ void pttlCommand(client *c) {
void
persistCommand
(
client
*
c
)
{
if
(
lookupKeyWrite
(
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
);
addReply
(
c
,
shared
.
cone
);
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