mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
TODO
This commit is contained in:
1 parent
3f69614405
commit
8dfbbb50f6
1 file changed
+1
@@ -361,6 +361,7 @@ extension DatabasePool: DatabaseReader {
|
||||
return try await readerPool.get { reader in
|
||||
try await reader.execute { db in
|
||||
defer {
|
||||
#warning("TODO: when Task is cancelled, this commit fails, and we're still in a transaction")
|
||||
// Ignore commit error, but make sure we leave the transaction
|
||||
try? db.commit()
|
||||
assert(!db.isInsideTransaction)
|
||||
|
||||
Reference in new issue
Block a user