Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rgw: add exclusive flag to set_as_default()
this dodges the race in RGWRealm::create() and RGWZoneParams::create() that decides whether to set the new object as a default. by calling set_as_default() with exclusive=true, it will fail with EEXIST if a default is already set it also fixes an issue with 'realm pull' on a secondary zone, where a 'default' zone may be created but never actually set_as_default() Signed-off-by: Casey Bodley <cbodley@redhat.com>
- Loading branch information
Showing
3 changed files
with
36 additions
and
51 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