]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: skip sync thread if current period is empty
authorCasey Bodley <cbodley@redhat.com>
Fri, 20 Jan 2017 19:36:54 +0000 (14:36 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 26 Apr 2017 18:04:15 +0000 (14:04 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rados.cc

index 329e09589acc645cc6f5c4658b83598c935bbaa3..a5af22cc359983cc17fd115b74a06c80707b8cbb 100644 (file)
@@ -4158,7 +4158,8 @@ int RGWRados::init_complete()
 
   /* 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) {
+  if (get_zonegroup().master_zone.empty() || !rest_master_conn
+      || current_period.get_id().empty()) {
     run_sync_thread = false;
   }