check correct queue for managed object value access

This commit is contained in:
John Estropia
2017-04-12 19:22:18 +09:00
parent 9f3db61ff7
commit a73306fecb
10 changed files with 239 additions and 40 deletions

View File

@@ -31,6 +31,9 @@ import Foundation
public final class SchemaHistory: ExpressibleByArrayLiteral {
// MARK: -
public let currentModelVersion: ModelVersion
public let migrationChain: MigrationChain
@@ -157,6 +160,7 @@ public final class SchemaHistory: ExpressibleByArrayLiteral {
CoreStore.abort("Could not resolve the \(cs_typeName(SchemaHistory.self)) current model version because the \(cs_typeName(MigrationChain.self)) have ambiguous leaf versions: \(candidateVersions)")
}
}
self.schemaByVersion = schemaByVersion
self.migrationChain = migrationChain
self.currentModelVersion = currentModelVersion