]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: potential access violation fix
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 12 Jan 2019 07:01:54 +0000 (15:01 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 25 Jan 2019 03:14:56 +0000 (11:14 +0800)
commit801369b0d654700d7400d65d37a1039292b3207b
treecfd594dabd2e3fb5625394f9f288dc71f7b41eed
parentd14d9b717074a1f32e9ac8fb46f48ecd49e8327a
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>
(cherry picked from commit df2e01f496dbc2b38800b1792082c540094d7b02)
src/osd/OSDMap.cc