]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: set per_pool_stats true when OSD has no PG
authorlmgdlmgd <jindengke@inspur.com>
Tue, 6 Sep 2022 07:32:54 +0000 (15:32 +0800)
committerGitHub <noreply@github.com>
Tue, 6 Sep 2022 07:32:54 +0000 (15:32 +0800)
commitc5b4e53e29ed8f2b6e0bad29754964b958e8240e
tree28166d1e91e1d169c38eb8921933d18deb6521ac
parentbd8b7aa4dabda2a3de36f98406d691755d669882
osd: set per_pool_stats true when OSD has no PG

if per_pool_stats is false when OSD has no PG, osd_sum.num_osds not equals osd_sum.num_per_pool_osds, then ceph df command return STORED == USED, this is not our expectation

Signed-off-by: jindengke <jindengke@inspur.com>
Signed-off-by: lmgdlmgd <jindengke@inspur.com>
src/osd/OSD.cc