]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: don't finish boot unless instance in map is really us
authorSage Weil <sage.weil@dreamhost.com>
Sat, 24 Sep 2011 21:45:32 +0000 (14:45 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 24 Sep 2011 21:47:39 +0000 (14:47 -0700)
commit4aa90a5e684f86b936e553218de003fed1a8bc55
treeef6ae2c84d99a6b3ccc7e2ae31541932ebfa43eb
parentad38abcffbb7ab6ac6dfa00cb4b4b78ef796a5a7
osd: don't finish boot unless instance in map is really us

We were going BOOTING->ACTIVE as soon as we showed up in the map with the
same client_addr.  Also verify that we were up_from an epoch after when
we started or rebound, to avoid the case where we rebind to the same
ports for client_addr (but maybe not others) and get caught in a rebind
loop.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/OSD.cc
src/osd/OSD.h