Commit ac105243 authored by antirez's avatar antirez
Browse files

ZINTERSTORE replication bug fix backported to 2.0.0

parent 30a7f9b3
...@@ -6106,7 +6106,7 @@ static void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) { ...@@ -6106,7 +6106,7 @@ static void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
redisAssert(op == REDIS_OP_INTER || op == REDIS_OP_UNION); redisAssert(op == REDIS_OP_INTER || op == REDIS_OP_UNION);
} }
deleteKey(c->db,dstkey); if (deleteKey(c->db,dstkey)) server.dirty++;
if (dstzset->zsl->length) { if (dstzset->zsl->length) {
dictAdd(c->db->dict,dstkey,dstobj); dictAdd(c->db->dict,dstkey,dstobj);
incrRefCount(dstkey); incrRefCount(dstkey);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment