]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: make sure hb peers get marked down
authorSage Weil <sage@newdream.net>
Wed, 10 Dec 2008 00:00:27 +0000 (16:00 -0800)
committerSage Weil <sage@newdream.net>
Wed, 10 Dec 2008 00:01:02 +0000 (16:01 -0800)
commitc79e073ab664ecc38481fa9a1dd7d951455dcd39
tree305fb754061894c7baef2b6f11596d44e1aedea8
parent3da9ffa64e5c08a4d88ff79de6448e27aaa31377
osd: make sure hb peers get marked down

We mark_down on osdmap update when we see an osd has gone down, but the
heartbeats are sent in a different thread without map_lock using
heartbeat_inst.  So, make sure heartbeat_inst entries are removed.

Also, we add hb peers at peers' request.  When removing such entries in
update_heartbeat_peers, mark_down then, too.  (We may mark_down a failed
peer, and then receive the hb request late.  So we mark that down next
time we update the heartbeat maps.)
src/osd/OSD.cc
src/osd/OSDMap.h