Forward player data to the instance a player is switching to

An upload can carry destinationInstanceId. Once the upload is stored,
the controller sends the stored data, the upload merged with its copy,
in a PrefetchEvent to that instance, if it is another running instance
with player_sync enabled. No lock is taken or released. A failed send is
logged and doesn't fail the upload.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ILLISISandClaude Opus 5.5 committed 2026-10-20 12:23:13 +11:00
1 parent 4128f75328
commit b8c1e89dff
4 files changed
+124 -2

No files matched your search

+1
View File
@@ -114,6 +114,7 @@ export const plugin: lib.PluginDeclaration = {
messages.ReleaseRequest,
messages.UploadRequest,
messages.DownloadRequest,
messages.PrefetchEvent,
messages.DatabaseStatsRequest,
messages.ListPlayersRequest,
messages.GetPlayerDataRequest,