Skip to content

Commit

Permalink
Merge pull request #14766: jewel: rgw: fix failed to create bucket if…
Browse files Browse the repository at this point in the history
… a non-master zonegroup has a single zone

Reviewed-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
smithfarm committed Apr 27, 2017
2 parents de38aad + c49b114 commit 6ab366d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rgw/rgw_rados.cc
Expand Up @@ -3861,9 +3861,9 @@ int RGWRados::init_complete()
meta_mgr->init_oldest_log_period();
}

/* not point of running sync thread if there is a single zone or
we don't have a master zone configured or there is no rest_master_conn */
if (get_zonegroup().zones.size() < 2 || get_zonegroup().master_zone.empty() || !rest_master_conn) {
/* no point of running sync thread if we don't have a master zone configured
or there is no rest_master_conn */
if (get_zonegroup().master_zone.empty() || !rest_master_conn) {
run_sync_thread = false;
}

Expand Down

0 comments on commit 6ab366d

Please sign in to comment.