]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSD: fix null pointer access and race condition 6916/head
authorxiexingguo <258156334@qq.com>
Mon, 14 Dec 2015 07:42:38 +0000 (15:42 +0800)
committerxiexingguo <xie.xingguo@zte.com.cn>
Thu, 17 Dec 2015 07:10:19 +0000 (15:10 +0800)
commitd9144481fd00aa120a57d24a198c88f87b77bdc8
treeef2f5b4debe0e577099e26372c730a137c7926f4
parent0063ee24e9824a8465e60d127cb0a828ba08e2d8
OSD: fix null pointer access and race condition

We are risking of accessing a null osdmap pointer when we failed to handle an osdmap message due to network error.
Also, it is not safe to change failure_pending without protection of hearbeat_lock.

Fixes: #14072
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.cc