Commit 2161a965 authored by antirez's avatar antirez
Browse files

ZSETs random fixes. Now the implementation appears to be pretty stable

parent ad807e6f
......@@ -3869,7 +3869,10 @@ static void zaddCommand(redisClient *c) {
assert(deleted != 0);
zslInsert(zs->zsl,*score,c->argv[3]);
incrRefCount(c->argv[3]);
dictReplace(zs->dict,c->argv[3],score);
server.dirty++;
} else {
zfree(score);
}
addReply(c,shared.czero);
}
......
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