-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remoteobjcat: improve ApplyBatch code
Improving the ApplyBatch code to first perform sanity checks, then apply the change to the catalog file, then apply to the in-memory state. This ensures correct state if writing to the catalog file fails. This also fixes a problem with the existing code when the catalog file gets rotated: we write down the in-memory state in the new file then write the batch; but because the in-memory state already reflected the batch, we essentially were applying it twice. The fix is accompanied by new sanity checks when loading the catalog.
- Loading branch information
1 parent
c564927
commit 123e628
Showing
5 changed files
with
61 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters