rgw: handle no current_preiod in is_syncing_bucket_meta

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
Orit Wasserman 2016-04-14 12:05:44 +02:00
parent 9e079b1838
commit ae604ded82

View File

@ -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;