diff options
author | antirez <antirez@gmail.com> | 2009-10-26 17:57:24 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2009-10-26 17:57:24 +0100 |
commit | 2161a9652725971e2602901410b4a5df0307f57e (patch) | |
tree | ef2893dff9be165a25fd3513b34387186109545a | |
parent | ad807e6fa3ce761a862a627316e6545f50779668 (diff) | |
download | redis-2161a9652725971e2602901410b4a5df0307f57e.tar.gz |
ZSETs random fixes. Now the implementation appears to be pretty stable
-rw-r--r-- | redis.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |