CultNetDatabase: a door's wire entry carries only its message
The change kind in the door's wire entry was restated from the log entry by NormalizeWireLogEntry, so computing it was dead code (Stryker survivor). The entry now carries just the door's put or delete message. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e79f3ee370
commit
13072fc5d7
1 changed files with 4 additions and 9 deletions
|
|
@ -1252,17 +1252,12 @@ namespace GameCult.Networking
|
|||
change.Key,
|
||||
change.Document,
|
||||
change.PreviousDocument);
|
||||
// A door's own wire message is what the log stores (its kind, sequence and shard are restated from the entry).
|
||||
var wireEntry = _mutationLogStore == null
|
||||
? null
|
||||
: door?.Put != null
|
||||
? new CultNetShardLogEntryMessage
|
||||
{
|
||||
ChangeKind = change.Kind == CultCacheDocumentChangeKind.Added ? "added" : "updated",
|
||||
Put = door.Put
|
||||
}
|
||||
: door?.Delete != null
|
||||
? new CultNetShardLogEntryMessage { ChangeKind = "removed", Delete = door.Delete }
|
||||
: ToLogEntryMessage(entry);
|
||||
: door is { Put: not null } or { Delete: not null }
|
||||
? new CultNetShardLogEntryMessage { Put = door.Put, Delete = door.Delete }
|
||||
: ToLogEntryMessage(entry);
|
||||
RecordMutationLogEntry(entry, wireEntry);
|
||||
}
|
||||
catch (Exception cause)
|
||||
|
|
|
|||
Loading…
Reference in a new issue