]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
messenger: add a set_ip function to initialize the IP
authorGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 29 Jun 2011 17:46:06 +0000 (10:46 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 29 Jun 2011 17:47:05 +0000 (10:47 -0700)
commit8bcc639ab2171827286dafb42ef4635477dee8f1
tree2e2fed26fe41e929fc05e65745cdcfbea4d65434
parent1247a2245363abe82457e6b71cd3243133321ca8
messenger: add a set_ip function to initialize the IP

Previously we only filled in IPs if they were set by the config file
(at startup) or after we connected to the monitor. Unfortunately this
could lead to conditions where the OSD connected to itself without
knowing that's what it was doing, because the cluster_addr IP wasn't
filled in until much too late. We've provided a mechanism for filling
in the IP and do so in OSD::boot_start.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/msg/Messenger.h
src/msg/SimpleMessenger.cc
src/msg/SimpleMessenger.h
src/osd/OSD.cc