]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Fix dynamic resharding not working for empty zonegroup in period 33266/head
authorofriedma <ofriedma@redhat.com>
Tue, 3 Dec 2019 14:11:35 +0000 (16:11 +0200)
committerNathan Cutler <ncutler@suse.com>
Thu, 13 Feb 2020 13:32:52 +0000 (14:32 +0100)
commit6b10cbf1e6d3afa19601b323fd607db12096a9c8
tree9137fa96ee83750a4fdaf91e84bbd6616761631a
parentda9b42ec818878f09515a2b0315b22766f20c890
rgw: Fix dynamic resharding not working for empty zonegroup in period

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)
src/rgw/rgw_zone.h