]> 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 01:37:48 +0000 (09:37 +0800)
commit1763a879e352c203c04860a369762b7fd9f7a8cf
tree57537da7f428ae5dbbf2eebaf713677016bd3933
parent8b3114ea6218b0c7ffcc313e532e3063d72369f7
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