mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-19 07:27:02 +01:00
WIP: object concurrency debugging utilities
This commit is contained in:
@@ -59,6 +59,8 @@ public final class DataStack: Equatable {
|
||||
*/
|
||||
public required init(model: NSManagedObjectModel, migrationChain: MigrationChain = nil) {
|
||||
|
||||
_ = DataStack.isGloballyInitialized
|
||||
|
||||
CoreStore.assert(
|
||||
migrationChain.valid,
|
||||
"Invalid migration chain passed to the \(cs_typeName(DataStack.self)). Check that the model versions' order is correct and that no repetitions or ambiguities exist."
|
||||
@@ -499,6 +501,12 @@ public final class DataStack: Equatable {
|
||||
|
||||
// MARK: Private
|
||||
|
||||
private static let isGloballyInitialized: Bool = {
|
||||
|
||||
NSManagedObject.cs_swizzleMethodsForLogging()
|
||||
return true
|
||||
}()
|
||||
|
||||
private var configurationStoreMapping = [String: NSPersistentStore]()
|
||||
private var entityConfigurationsMapping = [String: Set<String>]()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user