C#: a schema name that drifted no longer refuses a record resolved by its schema id
The contract says the name a catalog entry carries is metadata and a schema renamed under a stable id opens in every runtime that holds the id. The C# shape comparison refused any name drift, so a record under a declared old id (the entry carrying another name and a different content hash) or under a renamed stable id could not open. The comparison keeps the slot and type checks; a record resolved by name has the same name by construction. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
da0315e69e
commit
0cef517d83
2 changed files with 18 additions and 5 deletions
|
|
@ -989,11 +989,6 @@ namespace GameCult.Caching
|
|||
var ignoredExtraSlots = new List<int>();
|
||||
var defaultedMissingSlots = new List<int>();
|
||||
|
||||
if (!string.Equals(persisted.SchemaName, local.SchemaName, StringComparison.Ordinal))
|
||||
{
|
||||
errors.Add($"schema name drift '{persisted.SchemaName}' -> '{local.SchemaName}'");
|
||||
}
|
||||
|
||||
var persistedBySlot = persisted.Members.ToDictionary(member => member.Slot);
|
||||
var localBySlot = local.Members.ToDictionary(member => member.Slot);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue