Preserve dirty CultCache state during pulls

This commit is contained in:
Meta Vens 2026-07-18 23:19:45 +01:00
commit 49c43baa4c
15 changed files with 117 additions and 5 deletions

View file

@ -2092,6 +2092,13 @@ namespace GameCult.Caching
return;
}
// A single-file snapshot cannot distinguish local dirty keys from clean keys.
// Pulling while local mutations are staged would let an older disk snapshot
// erase those mutations before the next flush. Flush first; clean readers can
// still poll external snapshots incrementally.
if (IsDirty)
return;
CultPersistedStoreSnapshot snapshot;
try
{