]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSD: put a guard for updating heartbeat peers 7677/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 22 Feb 2016 07:23:14 +0000 (15:23 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 22 Feb 2016 07:23:14 +0000 (15:23 +0800)
commit4d26000bc22eaae28904150148ad082d4696fb9f
treefe7b7cef86a6da7df16469ad4c7ebab99e7153f0
parent67b2744b24a65a7b534eafd73d82a8d959f8c220
OSD: put a guard for updating heartbeat peers

As get_next_up_osd_after() and get_previous_up_osd_before() may refer to the same
osd, so we need to put a guard in case we try to add the same osd into want.
Note that the STL set can handle the above case, so this commit should be only
considered as cleanup, not a big deal.

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