Skip to content

Commit

Permalink
Merge pull request #3374 from cloudflare/kenton/explicit-txn-unwind
Browse files Browse the repository at this point in the history
Don't rollback ExplicitTxn if broken.
  • Loading branch information
kentonv authored Jan 21, 2025
2 parents 5753c2b + cb8128c commit a4685b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerd/io/actor-sqlite.c++
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ActorSqlite::ExplicitTxn::~ExplicitTxn() noexcept(false) {
}
}();

if (!committed) {
if (!committed && actorSqlite.broken == kj::none) {
// Assume rollback if not committed.
rollbackImpl();
}
Expand Down

0 comments on commit a4685b9

Please # to comment.