Skip to content

Commit 8dfbbb5

Browse files
committed
TODO
1 parent 3f69614 commit 8dfbbb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

GRDB/Core/DatabasePool.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ extension DatabasePool: DatabaseReader {
361361
return try await readerPool.get { reader in
362362
try await reader.execute { db in
363363
defer {
364+
#warning("TODO: when Task is cancelled, this commit fails, and we're still in a transaction")
364365
// Ignore commit error, but make sure we leave the transaction
365366
try? db.commit()
366367
assert(!db.isInsideTransaction)

0 commit comments

Comments
 (0)