From: Casey Bodley Date: Fri, 20 Jan 2017 19:36:54 +0000 (-0500) Subject: rgw: skip sync thread if current period is empty X-Git-Tag: v12.0.3~20^2~23 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5deabd35796f483f7fd74ba042b7f81a3366422b;p=ceph.git rgw: skip sync thread if current period is empty Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 329e09589acc..a5af22cc3599 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -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; }