summaryrefslogtreecommitdiff
path: root/src/t_zset.c
diff options
context:
space:
mode:
authorFelipe Machado <462154+felipou@users.noreply.github.com>2020-10-08 02:33:17 -0300
committerGitHub <noreply@github.com>2020-10-08 08:33:17 +0300
commitc3f9e017946cffdc3e7166e96e9ff98484db7963 (patch)
tree129309ef8f31f466d2f3845308d9db042efb51f8 /src/t_zset.c
parent2127f7c8ebc1d8638eb0c99764f698cebcdb6513 (diff)
downloadredis-c3f9e017946cffdc3e7166e96e9ff98484db7963.tar.gz
Adds new pop-push commands (LMOVE, BLMOVE) (#6929)
Adding [B]LMOVE <src> <dst> RIGHT|LEFT RIGHT|LEFT. deprecating [B]RPOPLPUSH. Note that when receiving a BRPOPLPUSH we'll still propagate an RPOPLPUSH, but on BLMOVE RIGHT LEFT we'll propagate an LMOVE improvement to existing tests - Replace "after 1000" with "wait_for_condition" when wait for clients to block/unblock. - Add a pre-existing element to target list on basic tests so that we can check if the new element was added to the correct side of the list. - check command stats on the replica to make sure the right command was replicated Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'src/t_zset.c')
-rw-r--r--src/t_zset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_zset.c b/src/t_zset.c
index 9fddf37d1..5fc7643c3 100644
--- a/src/t_zset.c
+++ b/src/t_zset.c
@@ -3364,7 +3364,7 @@ void blockingGenericZpopCommand(client *c, int where) {
}
/* If the keys do not exist we must block */
- blockForKeys(c,BLOCKED_ZSET,c->argv + 1,c->argc - 2,timeout,NULL,NULL);
+ blockForKeys(c,BLOCKED_ZSET,c->argv + 1,c->argc - 2,timeout,NULL,NULL,NULL);
}
// BZPOPMIN key [key ...] timeout