]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/OSDMonitor: report pg[pgp]_num_target instead of pg[pgp]_num
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 10 Jun 2019 07:58:37 +0000 (15:58 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 11 Jun 2019 12:39:05 +0000 (20:39 +0800)
commita160dc416a7c19eccce66f36719468680cd151f4
tree31dd4de67d7c4b6345e6dcfa6afac92461205931
parent2cc9324c057c3f5b7c9d98266b6f8379cf3171c0
mon/OSDMonitor: report pg[pgp]_num_target instead of pg[pgp]_num

As by calling "ceph osd pool set <pool-name> pg_num", we set the
pg_num_target instead. Hence we should report pg_num_target as well
when invoked by the "ceph osd pool get <pool-name> pg_num" call.

I doubt an ideal fix would be exposing both the pg_num(*actual*) and
pg_num_target concepts to user, but for now I think we can stop here
and get some more feedback first.

Fixes: http://tracker.ceph.com/issues/40193
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/OSDMonitor.cc