]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdmap: fix identify_osd() and find_osd_on_ip()
authorSage Weil <sage@newdream.net>
Sun, 29 Apr 2012 17:10:41 +0000 (10:10 -0700)
committerSage Weil <sage@newdream.net>
Sun, 29 Apr 2012 17:10:41 +0000 (10:10 -0700)
commit4465c3ab74453c9c07849ec2934df878eba8ce29
tree6dc7a2143c2ac0b14f631b346161d06cbe1018ad
parentbf4966cf1458a8b013070c7ff8732f5671b34461
osdmap: fix identify_osd() and find_osd_on_ip()

In 313c1566d3b649ef81fcdc722678d77dccfa888f we switched to using the
get_addr() accessor methods, which assert that the osd exists.  Check that
before calling.

Fixes: #2361
Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSDMap.cc