Skip to content

Commit a4685b9

Browse files
authored
Merge pull request #3374 from cloudflare/kenton/explicit-txn-unwind
Don't rollback ExplicitTxn if broken.
2 parents 5753c2b + cb8128c commit a4685b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/workerd/io/actor-sqlite.c++

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ ActorSqlite::ExplicitTxn::~ExplicitTxn() noexcept(false) {
128128
}
129129
}();
130130

131-
if (!committed) {
131+
if (!committed && actorSqlite.broken == kj::none) {
132132
// Assume rollback if not committed.
133133
rollbackImpl();
134134
}

0 commit comments

Comments
 (0)