Skip to content

Commit 601b4a3

Browse files
fix: clear _tx_owner when resetting connection transaction state
_reset_connection() cleared _in_transaction but left _tx_owner pointing to the stale task. This created inconsistent state on connections returned to the pool after a dirty rollback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0176fcf commit 601b4a3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/dqliteclient/pool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ async def _reset_connection(self, conn: DqliteConnection) -> bool:
182182
except Exception:
183183
return False
184184
conn._in_transaction = False
185+
conn._tx_owner = None
185186
return True
186187

187188
async def _release(self, conn: DqliteConnection) -> None:

0 commit comments

Comments
 (0)