]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: Skip check_pg_num on pool size decrease
authorMatan Breizman <mbreizma@redhat.com>
Thu, 15 Dec 2022 17:05:15 +0000 (17:05 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 20 Dec 2022 14:09:38 +0000 (14:09 +0000)
commita7c09bb82cc7749b05a0f60477c9407a177086d1
tree044b23058f91872153e6a35d641e86b8b705096a
parentc6e4c174cb9d906537d78ff3980930439ace86da
mon/OSDMonitor: Skip check_pg_num on pool size decrease

When changing the pool size we use check_pg_num to not exceed
`mon_max_pg_per_osd` value. This check should only be applied
when increasing the size to avoid underflows.
(Same already applied when changing pg_num)

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/mon/OSDMonitor.cc