fix(zset): ignore cancelled op status in BZPopMinMax (#2527)

fix(zset): ignore cancelled op status
This commit is contained in:
Andy Dunstall 2024-02-03 09:35:05 +00:00 committed by GitHub
parent 40d08a3c67
commit 562aa151a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1335,6 +1335,7 @@ void BZPopMinMax(CmdArgList args, ConnectionContext* cntx, bool is_max) {
switch (popped_key.status()) {
case OpStatus::WRONG_TYPE:
return rb->SendError(kWrongTypeErr);
case OpStatus::CANCELLED:
case OpStatus::TIMED_OUT:
return rb->SendNullArray();
default: