SuccessChanges

Summary

  1. Only write to cached header in RegionFile if write potentially succeeds (commit: 35e71bb) (details)
Commit 35e71bbc9cd837e0d0b5a180acff09de6484054b by zach
Only write to cached header in RegionFile if write potentially succeeds
(#2212)
* Only write to cached header in RegionFile if write potentially
succeeds

* Fail write if timestamp update fails
This way timestamps should be consistent with their actual last write.

* Simply order the time write before the chunk write
otherwise we end up with an invalid offset on disk, it's better
have an invalid timestamp
(commit: 35e71bb)
The file was modifiedSpigot-Server-Patches/0432-Make-region-files-more-reliable-to-write-to.patch (diff)