Mesh: a zero-byte store file is refused, not read as empty; the alias test is retargeted to one type per schema
CultMesh's single-file reader had its own zero-length-means-empty branch, so a Mesh write replaced a zero-byte file the cache refuses (merge-r1-precedence). It now asks the cache's snapshot reader and gets its verdict. The auto-merged test that read a same-schema instance through MeshNoteAliasDocument cannot be built under retire-schema-alias; it now states the ownership rule it protected (a database serves only what a shard owns) with the one type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0f13c7d368
commit
75ba6c0f5c
3 changed files with 15 additions and 6 deletions
|
|
@ -276,8 +276,6 @@ namespace GameCult.Mesh
|
|||
private static CultPersistedStoreSnapshot ReadSingleFileSnapshot(string path)
|
||||
{
|
||||
var bytes = File.ReadAllBytes(path);
|
||||
if (bytes.Length == 0)
|
||||
return new CultPersistedStoreSnapshot();
|
||||
CultPersistedStoreSnapshot snapshot;
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue