]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: clear hb_front if it was previously non-NULL and is now NULL
authorSage Weil <sage@inktank.com>
Wed, 3 Jul 2013 22:37:05 +0000 (15:37 -0700)
committerSage Weil <sage@inktank.com>
Wed, 3 Jul 2013 22:37:05 +0000 (15:37 -0700)
commit81343f1df4b55d6069a4e81b858f3bf1aea1cea9
treefb4d56a3d502307f483a49d13b162270be4d425f
parent9942efde77a7d0f0d2be797c3e3f0584665afe8e
osd: clear hb_front if it was previously non-NULL and is now NULL

If we have a real addr for hb_front for a given osd and then a new map
has the osd coming up without an hb_front, we need to clear the addr
field.

Also, improve the debug output in add_heartbeat_peer() so we can tell if
we have no connection or a connection to a blank addr.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
src/osd/OSD.cc
src/osd/OSDMap.cc