]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
MDSMonitor: Adjust handling of MDSes asking for standby-replay.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 20 Jan 2011 19:57:23 +0000 (11:57 -0800)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Mon, 24 Jan 2011 18:57:44 +0000 (10:57 -0800)
commitcc207ca54c2b297eabd561cc769be0ed3f5f6989
tree7f309745c84ff6d35ec860f5be4fa0995dbddd2b
parent54bdac7041878fd1b1c93e8bbd41b56069802d2b
MDSMonitor: Adjust handling of MDSes asking for standby-replay.

1) If the MDS does not specify an MDS to follow, we mark them as
standing-by for -2. MDSMap::find_standby_for() has been modified
to grab these MDSes.
2) If an MDS asks for standby-replay and specifies a name but
not a rank, fill in the rank if the named MDS is known to us. If it
is not known, do nothing.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/mds/MDSMap.h
src/mon/MDSMonitor.cc