]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Thu, 14 Feb 2019 01:38:21 +0000 (09:38 +0800)
commita7d2adf4283cc11ed567b0ad07c4076a50d7d2a0
tree3496de7023b03699160a68144415bb583340c924
parent3e6ff119e298a9269f7c66d8c1a9b87fab16d987
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>
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