mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-15 13:22:12 +01:00
fix rare duplication of uniqueID values during import when an import candidate is added by a previous insertion block
This commit is contained in:
1 parent
18aac84335
commit
edd8ba55d8
3 files changed
+6
-3
No files matched your search
@@ -230,7 +230,10 @@ extension BaseDataTransaction {
|
||||
}
|
||||
try autoreleasepool {
|
||||
|
||||
if let object = existingObjectsByID[objectID] {
|
||||
if let object = existingObjectsByID[objectID]
|
||||
?? self.context.insertedObjects
|
||||
.compactMap({ O.cs_matches(object: $0) ? O.cs_fromRaw(object: $0) : nil })
|
||||
.first(where: { $0.uniqueIDValue == objectID }) {
|
||||
|
||||
guard entityType.shouldUpdate(from: source, in: self) else {
|
||||
|
||||
|
||||
Reference in new issue
Block a user