mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix(zset): ignore cancelled op status in BZPopMinMax (#2527)
fix(zset): ignore cancelled op status
This commit is contained in:
parent
40d08a3c67
commit
562aa151a7
1 changed files with 1 additions and 0 deletions
|
@ -1335,6 +1335,7 @@ void BZPopMinMax(CmdArgList args, ConnectionContext* cntx, bool is_max) {
|
||||||
switch (popped_key.status()) {
|
switch (popped_key.status()) {
|
||||||
case OpStatus::WRONG_TYPE:
|
case OpStatus::WRONG_TYPE:
|
||||||
return rb->SendError(kWrongTypeErr);
|
return rb->SendError(kWrongTypeErr);
|
||||||
|
case OpStatus::CANCELLED:
|
||||||
case OpStatus::TIMED_OUT:
|
case OpStatus::TIMED_OUT:
|
||||||
return rb->SendNullArray();
|
return rb->SendNullArray();
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue