From ae604ded82e8598faa20ec5ed8da181d8c0f0341 Mon Sep 17 00:00:00 2001 From: Orit Wasserman Date: Thu, 14 Apr 2016 12:05:44 +0200 Subject: [PATCH] rgw: handle no current_preiod in is_syncing_bucket_meta Signed-off-by: Orit Wasserman --- src/rgw/rgw_rados.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index dc2af290731..95d4316d6ae 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;