]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix failed to create bucket if a non-master zonegroup has a single zone 10991/head
authorweiqiaomiao <wei.qiaomiao@zte.com.cn>
Tue, 6 Sep 2016 08:34:52 +0000 (16:34 +0800)
committerweiqiaomiao <wei.qiaomiao@zte.com.cn>
Tue, 6 Sep 2016 09:08:53 +0000 (17:08 +0800)
If a non-master zonegroup has a single zone, the metadata sync thread not running and
the non-master zonegroup can't sync user from master zonegroup,
so we can't create bucket(or other metadata update) in it
because the authenticated user not found in the zone of non-master zonegroup.

Signed-off-by: weiqiaomiao <wei.qiaomiao@zte.com.cn>
src/rgw/rgw_rados.cc

index b2a7d56330bbe1f26f52d72d52983889caafb10f..ea7e34e695e8a6661d9e37805b11bb78eab1625b 100644 (file)
@@ -3794,9 +3794,9 @@ int RGWRados::init_complete()
     obj_expirer->start_processor();
   }
 
-  /* 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) {
+  /* not 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;
   }