diff options
author | michael-grunder <michael.grunder@gmail.com> | 2018-06-21 12:30:42 -0700 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2018-06-21 12:30:42 -0700 |
commit | db6b99f90cc569c8126e2b7b0123508d8b8b015d (patch) | |
tree | 04e167551e09bcbbada2873ebb2b297f919bc408 | |
parent | a16aa03a678d1312611ca601a6f9da68427bba9f (diff) | |
download | redis-db6b99f90cc569c8126e2b7b0123508d8b8b015d.tar.gz |
Update ZPOPMIN/ZPOPMAX command declaration
Unlike the BZPOP variants, these functions take a single key. This fixes
an erroneous CROSSSLOT error when passing a count to a cluster enabled
server.
-rw-r--r-- | src/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.c b/src/server.c index a59a75acb..3ac1278aa 100644 --- a/src/server.c +++ b/src/server.c @@ -198,8 +198,8 @@ struct redisCommand redisCommandTable[] = { {"zrank",zrankCommand,3,"rF",0,NULL,1,1,1,0,0}, {"zrevrank",zrevrankCommand,3,"rF",0,NULL,1,1,1,0,0}, {"zscan",zscanCommand,-3,"rR",0,NULL,1,1,1,0,0}, - {"zpopmin",zpopminCommand,-2,"wF",0,NULL,1,-1,1,0,0}, - {"zpopmax",zpopmaxCommand,-2,"wF",0,NULL,1,-1,1,0,0}, + {"zpopmin",zpopminCommand,-2,"wF",0,NULL,1,1,1,0,0}, + {"zpopmax",zpopmaxCommand,-2,"wF",0,NULL,1,1,1,0,0}, {"bzpopmin",bzpopminCommand,-2,"wsF",0,NULL,1,-2,1,0,0}, {"bzpopmax",bzpopmaxCommand,-2,"wsF",0,NULL,1,-2,1,0,0}, {"hset",hsetCommand,-4,"wmF",0,NULL,1,1,1,0,0}, |