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
b73d87f5
Unverified
Commit
b73d87f5
authored
Apr 02, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Apr 02, 2020
Browse files
Merge pull request #7039 from guybe7/persist_ksn
PERSIST should notify a keyspace event
parents
babada8b
3f0afab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/expire.c
View file @
b73d87f5
...
@@ -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