Skip to content

Commit

Permalink
ZSETs random fixes. Now the implementation appears to be pretty stable
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Oct 26, 2009
1 parent ad807e6 commit 2161a96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2161a96

Please sign in to comment.