-
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.
objstorageprovider: fix race during sharedSync
Applying a batch to the remote object catalog is serialized through the catalog mutex. However, it is possible for two goroutines to try to sync in parallel, and the one with the more recent operations to apply the batch first. That can cause the catalog code to see deletion of an object before creation. The fix is to use a mutex to make the entire sync code atomic. Fixes #2852.
- Loading branch information
1 parent
0b401ee
commit c564927
Showing
2 changed files
with
75 additions
and
4 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