Skip to content

Synchronize YamlRegionFile#saveAll#2014

Open
TomyLobo wants to merge 2 commits into
version/7.0.xfrom
synchronized-region-save
Open

Synchronize YamlRegionFile#saveAll#2014
TomyLobo wants to merge 2 commits into
version/7.0.xfrom
synchronized-region-save

Conversation

@TomyLobo

Copy link
Copy Markdown
Collaborator

This prevents multiple invocations of the method from intersecting, which could potentially cause the .tmp file to be overwritten before being renamed, thus corrupting the region storage

@TomyLobo TomyLobo force-pushed the synchronized-region-save branch from 563e59b to 5763f53 Compare July 19, 2023 18:26
@TomyLobo TomyLobo changed the base branch from version/7.0.x to master July 11, 2026 13:54
TomyLobo added 2 commits July 11, 2026 16:06
This prevents multiple invocations of the method from intersecting, which could potentially cause the .tmp file to be overwritten before being renamed, thus corrupting the region storage
I didn't realize it before, but it looks like there is at least one instance of YamlRegionFile per world, so synchronizing on the instance wouldn't necessarily help.
@TomyLobo TomyLobo force-pushed the synchronized-region-save branch from 0155011 to 4d06481 Compare July 11, 2026 14:08
@TomyLobo TomyLobo changed the base branch from master to version/7.0.x July 11, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants