1
0
mirror of https://github.com/ceph/ceph synced 2025-04-01 23:02:17 +00:00

Merge pull request from oritwas/wip-rgw-remove-bucket-instance

rgw: handle no current_period in is_syncing_bucket_meta

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
Sage Weil 2016-04-17 08:31:21 -04:00
commit eb281a2c96

View File

@ -6972,6 +6972,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;