Validate: the key-home check needs no eviction exception (an evicted key's home is already in the batch's homes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
edad333a4d
commit
1ff5ae79dc
1 changed files with 1 additions and 1 deletions
|
|
@ -3126,7 +3126,7 @@ namespace GameCult.Caching
|
|||
$"{descriptor.SchemaName} record {stored.Key.Value} was loaded from {source} but its home is {home?.ToString() ?? "no store"}.");
|
||||
|
||||
// One key, one store: a key never moves between homes, and two stores never both deliver it.
|
||||
if (!removedKeys.Contains(stored.Key.Value) && _entries.TryGetValue(stored.Key.Value, out var present) &&
|
||||
if (_entries.TryGetValue(stored.Key.Value, out var present) &&
|
||||
Home(present.Descriptor.DocumentType) is var held &&
|
||||
Home(descriptor.DocumentType) is var incoming &&
|
||||
held != incoming)
|
||||
|
|
|
|||
Loading…
Reference in a new issue