]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: more improvements to upmap
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 26 Jan 2019 10:03:15 +0000 (18:03 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 20 Feb 2019 07:23:10 +0000 (15:23 +0800)
commitf4f66e4f0af96e6e4daf86b81ec479f5fc8a3fd8
treeeff23a93452813807ff265ac7e9a8e0351f1774c
parent7bebc4cd28148f0b71237344cd59ff9c37d8ac86
osd/OSDMap: more improvements to upmap

- add ability of appending a 2nd, 3rd, etc... pair to existing upmaps
  when possible, rather than just continuing to the next PG
- handle the underfull case: we can rm-pg-upmap-items if there exist
  any upmaps which remapped a PG out from an underfull OSD

See-also: http://tracker.ceph.com/issues/37940
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit a7d2adf4283cc11ed567b0ad07c4076a50d7d2a0)

Conflicts:
- various option changes since luminous
- s/assert/ceph_assert/
        - s/conf./conf->/
src/common/options.cc
src/osd/OSDMap.cc
src/osd/OSDMap.h
src/test/cli/osdmaptool/upmap-out.t
src/test/cli/osdmaptool/upmap.t