]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: set per_pool_stats true when OSD has no PG 48249/head
authorlmgdlmgd <jindengke@inspur.com>
Tue, 6 Sep 2022 07:32:54 +0000 (15:32 +0800)
committerIgor Fedotov <igor.fedotov@croit.io>
Mon, 26 Sep 2022 09:36:17 +0000 (12:36 +0300)
commit4b6189b26386c8f76797d475d75792feca069049
tree43826c4529179003f5fcbf9b4e77ed525455b18f
parent7e76448beefff9399729adb1dc5583efa7528947
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>
(cherry picked from commit c5b4e53e29ed8f2b6e0bad29754964b958e8240e)
src/osd/OSD.cc