Caching: SingleFileBackingStore.PushAll owns the flush guard; it reads the disk as attach and commit do, ReadFormatVersion is deleted

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-22 17:00:10 +02:00
commit 0bf11ddc94
3 changed files with 147 additions and 29 deletions

View file

@ -548,12 +548,6 @@ public class SingleFileMessagePackBackingStore : SingleFileBackingStore
return snapshot;
}
protected override string? ReadFormatVersion(byte[] data)
{
var reader = new MessagePackReader(data);
return reader.ReadArrayHeader() > 0 ? reader.ReadString() : null;
}
protected override byte[] SerializePayload(object document)
{
return CultDocumentMessagePackSerialization.SerializeUntyped(document, document.GetType(), Registry);