Skip to content

Merge conflict errors when updating Core Data with datastore changes #29

@lyahdav

Description

@lyahdav

We sometimes get NSMergeConflict errors logged from [PKSyncManager updateCoreDataWithDatastoreChanges]. This is possible when changes are saved to the persistent store by another managed object context while updateCoreDataWithDatastoreChanges is running.
A simple solution to this is to set the merge policy on the managed object context:
vijayj@c05e287

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions