mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-16 05:56:50 +01:00
added mechanism to track transaction sources
This commit is contained in:
@@ -49,7 +49,11 @@ public final class CSSynchronousDataTransaction: CSBaseDataTransaction, CoreStor
|
||||
|
||||
return bridge(error) {
|
||||
|
||||
if case (_, let error?) = self.bridgeToSwift.context.saveSynchronously(waitForMerge: true) {
|
||||
let transaction = self.bridgeToSwift
|
||||
if case (_, let error?) = transaction.context.saveSynchronously(
|
||||
waitForMerge: true,
|
||||
sourceIdentifier: transaction.sourceIdentifier
|
||||
) {
|
||||
|
||||
throw error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user