]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/osdmaptool.cc: fix inaccurate pg map result when simulating osd out 37185/head
authorZhi Zhang <willzzhang@tencent.com>
Wed, 16 Sep 2020 06:46:08 +0000 (14:46 +0800)
committerZhi Zhang <willzzhang@tencent.com>
Wed, 16 Sep 2020 06:46:08 +0000 (14:46 +0800)
commit4a8cf6494490baa01c1347bbe618ce3ee103db26
tree01c5ef1cb1565a2e4a6c2d1ac11b3fcf03a984fb
parent6607cd853869e6b2b806e053cd973d69e6e44e42
tools/osdmaptool.cc: fix inaccurate pg map result when simulating osd out

When simulating osd out, it will always adjust this osd's crush weight
to 1.0. Hence the pg map result is not same as the real cluster or simulated
by crushtool.

Fixes: https://tracker.ceph.com/issues/47492
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
src/tools/osdmaptool.cc