From: Orit Wasserman Date: Thu, 14 Apr 2016 10:05:44 +0000 (+0200) Subject: rgw: handle no current_preiod in is_syncing_bucket_meta X-Git-Tag: v10.2.0~10^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ae604ded82e8598faa20ec5ed8da181d8c0f0341;p=ceph.git rgw: handle no current_preiod in is_syncing_bucket_meta Signed-off-by: Orit Wasserman --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index dc2af2907316..95d4316d6aef 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -6970,6 +6970,12 @@ bool RGWRados::is_meta_master() */ bool RGWRados::is_syncing_bucket_meta(rgw_bucket& bucket) { + + /* no current period */ + if (current_period.get_id().empty()) { + return false; + } + /* zonegroup is not master zonegroup */ if (!get_zonegroup().is_master) { return false;