mirror of
https://github.com/ceph/ceph
synced 2025-04-01 23:02:17 +00:00
Merge pull request #8597 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:
commit
eb281a2c96
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user