ZSETs random fixes. Now the implementation appears to be pretty stable
This commit is contained in:
parent
ad807e6fa3
commit
2161a96527
3
redis.c
3
redis.c
@ -3869,7 +3869,10 @@ static void zaddCommand(redisClient *c) {
|
|||||||
assert(deleted != 0);
|
assert(deleted != 0);
|
||||||
zslInsert(zs->zsl,*score,c->argv[3]);
|
zslInsert(zs->zsl,*score,c->argv[3]);
|
||||||
incrRefCount(c->argv[3]);
|
incrRefCount(c->argv[3]);
|
||||||
|
dictReplace(zs->dict,c->argv[3],score);
|
||||||
server.dirty++;
|
server.dirty++;
|
||||||
|
} else {
|
||||||
|
zfree(score);
|
||||||
}
|
}
|
||||||
addReply(c,shared.czero);
|
addReply(c,shared.czero);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user