]> 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>
Sun, 5 May 2019 09:34:30 +0000 (17:34 +0800)
commitd6a40a14557f180efbbc885a6aed011004c8d7f9
tree158a200aff953c92af045a1f7fb15b0a00c27b9c
parent186e1d9137aa4b96417076e21cad146218f6f5b7
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