Sometimes when cluster has been upgraded from jewel, the period's zonegroup could be empty, so no dynamic resharding.
This fix should fix it and return true for less than 1 (0) zonegroup in period
Fixes: https://tracker.ceph.com/issues/43188
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
(cherry picked from commit
a76e4393728c3e74a943b635d2ac0652e0cc092a)
bool is_single_zonegroup() const
{
- return (period_map.zonegroups.size() == 1);
+ return (period_map.zonegroups.size() <= 1);
}
/*