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
0232778f
Unverified
Commit
0232778f
authored
Jan 22, 2021
by
Huang Zw
Committed by
GitHub
Jan 22, 2021
Browse files
In dbOverwrite moduleNotifyKeyUnlink should use old val (#8381)
The module notification was using the wrong value.
parent
f28fccd2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/db.c
View file @
0232778f
...
@@ -226,7 +226,7 @@ void dbOverwrite(redisDb *db, robj *key, robj *val) {
...
@@ -226,7 +226,7 @@ void dbOverwrite(redisDb *db, robj *key, robj *val) {
/* Although the key is not really deleted from the database, we regard
/* Although the key is not really deleted from the database, we regard
overwrite as two steps of unlink+add, so we still need to call the unlink
overwrite as two steps of unlink+add, so we still need to call the unlink
callback of the module. */
callback of the module. */
moduleNotifyKeyUnlink
(
key
,
val
);
moduleNotifyKeyUnlink
(
key
,
old
);
dictSetVal
(
db
->
dict
,
de
,
val
);
dictSetVal
(
db
->
dict
,
de
,
val
);
if
(
server
.
lazyfree_lazy_server_del
)
{
if
(
server
.
lazyfree_lazy_server_del
)
{
...
...
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