1
0
Fork 0
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:
Andy Dunstall 2024-09-21 17:08:53 +01:00 committed by GitHub
parent ce79da0f7a
commit 9dd79657ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());