Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: RGWPeriod::reflect() sets master zonegroup as default #8566

Merged
merged 1 commit into from Apr 14, 2016

Commits on Apr 13, 2016

  1. rgw: RGWPeriod::reflect() sets master zonegroup as default

    if RGWPeriod::reflect() is called right after a 'realm pull', it will
    create the zonegroup objects but not set any as default.  so the next
    time RGWRados is initialized, create_defaults() will add a new 'default'
    zonegroup and set it as the master.  this causes a 'period update' to
    find multiple master zonegroups and fail with EINVAL
    
    reflect() now calls set_as_default(exclusive=true) on the master
    zonegroup to guarantee that a default is set
    
    Signed-off-by: Casey Bodley <cbodley@redhat.com>
    cbodley committed Apr 13, 2016
    Copy the full SHA
    5230967 View commit details
    Browse the repository at this point in the history