mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Fix crash when chaining brpoplpush with other blocking commands.
This commit is contained in:
parent
b56567017d
commit
c47d152c8d
@ -643,7 +643,7 @@ void lremCommand(redisClient *c) {
|
|||||||
void rpoplpushHandlePush(redisClient *origclient, redisClient *c, robj *dstkey, robj *dstobj, robj *value) {
|
void rpoplpushHandlePush(redisClient *origclient, redisClient *c, robj *dstkey, robj *dstobj, robj *value) {
|
||||||
robj *aux;
|
robj *aux;
|
||||||
|
|
||||||
if (!handleClientsWaitingListPush(c,dstkey,value)) {
|
if (!handleClientsWaitingListPush(origclient,dstkey,value)) {
|
||||||
/* Create the list if the key does not exist */
|
/* Create the list if the key does not exist */
|
||||||
if (!dstobj) {
|
if (!dstobj) {
|
||||||
dstobj = createZiplistObject();
|
dstobj = createZiplistObject();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user