mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
rgw: handle no current_preiod in is_syncing_bucket_meta
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
parent
9e079b1838
commit
ae604ded82
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user