mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
fix: zset store conclude transaction on error (#3755)
This commit is contained in:
parent
ce79da0f7a
commit
9dd79657ce
1 changed files with 5 additions and 1 deletions
|
@ -1762,8 +1762,12 @@ void ZBooleanOperation(CmdArgList args, ConnectionContext* cntx, bool is_union,
|
|||
for (auto& op_res : maps) {
|
||||
if (op_res.status() == OpStatus::SKIPPED)
|
||||
continue;
|
||||
if (!op_res)
|
||||
if (!op_res) {
|
||||
if (store) {
|
||||
cntx->transaction->Conclude();
|
||||
}
|
||||
return cntx->SendError(op_res.status());
|
||||
}
|
||||
|
||||
if (result.empty())
|
||||
result = std::move(op_res.value());
|
||||
|
|
Loading…
Reference in a new issue