mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 07:33:12 +09:00
Keep accepting uploads from instances without epochs
A host running the plugin from before epochs never sends one, so after an import or delete every upload it made was discarded while the instance believed it succeeded. The Lua now always sends its epoch, and an upload without one is compared by generation against the stored data the way it was before, taking over the stored epoch. Those hosts can still overwrite an import with a copy they failed to upload, which the README now says. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2529683c2b
commit
5634651de1
5 files changed
+48
-5
No files matched your search
@@ -50,6 +50,8 @@ An instance holding a copy from an earlier epoch throws it away the next time th
|
||||
After an import the instance downloads the new data.
|
||||
After a delete the next join turns whatever the player has on that instance into the new synced inventory.
|
||||
Deleted players stay in `player_sync.json` as an entry with `deleted: true` so their epoch survives a controller restart.
|
||||
Hosts running a version of this plugin from before epochs keep comparing generations only, so they can still overwrite an import with a copy they failed to upload.
|
||||
Update the plugin on every host to get the full guarantee.
|
||||
Both are refused while an instance holds the lock on the player, because the instance uploads its own copy when the player leaves and that would undo the change.
|
||||
Have the player leave first, or release the lock if the instance is stuck holding it.
|
||||
|
||||
|
||||
Reference in new issue
Block a user