]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: potential access violation fix 25930/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 12 Jan 2019 07:01:54 +0000 (15:01 +0800)
committerxiexingguo <xie.xingguo@gmail.com>
Sun, 13 Jan 2019 01:17:07 +0000 (09:17 +0800)
commitdf2e01f496dbc2b38800b1792082c540094d7b02
treec66e3439e1a26d3838d88b08fde0ea738901cf65
parenta05f9ebaa6cba0aafde5a0fab46f6b7ccbe174b2
osd/OSDMap: potential access violation fix

Seems we'll continue to access the iterator after it is invalidated
by the __erase__ method.
Also this is more efficient considering there could be some extreme
ec-pool (e.g., 8 + 2) consumers..

Fixes: http://tracker.ceph.com/issues/37881
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSDMap.cc