]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: make pgp_num track pg_num more consistently
authorSage Weil <sage@redhat.com>
Wed, 19 Sep 2018 18:56:10 +0000 (13:56 -0500)
committerSage Weil <sage@redhat.com>
Tue, 16 Oct 2018 12:22:48 +0000 (07:22 -0500)
commit48412ce4e4e21ed271682614341b6f570a9f8999
treec964806042e7ee9b7532f74e8adb8500587e62ce
parent747c9dcf0ae5f88aa8a5ba93a35a900c9f4c3dec
mon/OSDMonitor: make pgp_num track pg_num more consistently

Previously we were automatically adjusting pgp_num_target on a
pg_num_target change *only* when decreasing pg_num.  Instead, make
pgp_num (continue to) track pg_num if it currently matches.  If it ever
is set differently than pg_num, leave it different (unless/until it
matches again).

This is still slightly weird, but I think in practice it is good enough.
In the rare case that the admin manually sets pgp_num to something
different than pg_num, they probably won't also be using automagic
pg_num adjustment that might make them match and start tracking again.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc