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
8024de7e
Commit
8024de7e
authored
Jan 29, 2013
by
antirez
Browse files
Z*STORE event fixed: generate del only if resulting sorted set is empty.
parent
ca8e7d4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
8024de7e
...
@@ -1680,7 +1680,6 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
...
@@ -1680,7 +1680,6 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
if (dbDelete(c->db,dstkey)) {
if (dbDelete(c->db,dstkey)) {
signalModifiedKey(c->db,dstkey);
signalModifiedKey(c->db,dstkey);
notifyKeyspaceEvent
(
REDIS_NOTIFY_GENERIC
,
"del"
,
dstkey
,
c
->
db
->
id
);
touched = 1;
touched = 1;
server.dirty++;
server.dirty++;
}
}
...
@@ -1700,6 +1699,8 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
...
@@ -1700,6 +1699,8 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
} else {
} else {
decrRefCount(dstobj);
decrRefCount(dstobj);
addReply(c,shared.czero);
addReply(c,shared.czero);
if (touched)
notifyKeyspaceEvent(REDIS_NOTIFY_GENERIC,"del",dstkey,c->db->id);
}
}
zfree(src);
zfree(src);
}
}
...
...
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