]> git.apps.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>
Thu, 9 Mar 2023 13:20:20 +0000 (13:20 +0000)
commit08c4de3c6575745f972924d1885f1d669e12262f
tree8c92eb2cc42b73b5f75ee868defee421c9e770a2
parent8d35cb4638975b05f993ceeb0a2d6917a00fb227
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>
(cherry picked from commit a7c09bb82cc7749b05a0f60477c9407a177086d1)
src/mon/OSDMonitor.cc