From dc7be51a114f1fe37358c77ef5e063f932fd6919 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 00:26:22 +0100 Subject: [PATCH] SingleFileBackingStore: name its gate call apart from the base rule Co-Authored-By: Claude Sonnet 5.5 --- src/GameCult.Caching/CultCache.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GameCult.Caching/CultCache.cs b/src/GameCult.Caching/CultCache.cs index 59daa585..cae722a5 100644 --- a/src/GameCult.Caching/CultCache.cs +++ b/src/GameCult.Caching/CultCache.cs @@ -5093,7 +5093,7 @@ namespace GameCult.Caching RefuseUndeclaredOnDisk(durable, upserts, removals, checks); if (upserts.Count == 0 && removals.Count == 0 && (checks.Any() || StagedChecks.Count > 0)) return Array.Empty<(CultStagedRecord, string)>(); - RefuseWriteIntoMovedStore(durable, upserts, removals); + RefuseWriteIntoMovedFile(durable, upserts, removals); var durableRecords = durable?.Snapshot.Records ?? Array.Empty(); // A record written over one the store holds is stored at a storedAt later than the one it replaces, whoever wrote that. var replaced = durableRecords.ToDictionary(record => record.Key, record => record.StoredAt, StringComparer.Ordinal); @@ -5178,7 +5178,7 @@ namespace GameCult.Caching return false; } - private void RefuseWriteIntoMovedStore(Durable? durable, IReadOnlyCollection upserts, IReadOnlyCollection removals) => + private void RefuseWriteIntoMovedFile(Durable? durable, IReadOnlyCollection upserts, IReadOnlyCollection removals) => RefuseWriteIntoMovedStore( () => (durable?.Snapshot.Records ?? Array.Empty()) .ToDictionary(record => record.Key, record => durable!.Version(record.Key), StringComparer.Ordinal),