]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
MDSMonitor: fix bugs with standby-replay assignment.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Tue, 25 Jan 2011 22:07:02 +0000 (14:07 -0800)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Tue, 25 Jan 2011 22:12:32 +0000 (14:12 -0800)
commitbc98a0fb509e572e83365e917085b32625fdce5b
tree69a9047685212d403b369eda404e25c1a6d471c1
parent0fbbbad8dd53603f06d226dca2c309236d3d85b8
MDSMonitor: fix bugs with standby-replay assignment.

We were accidentally passing gid instead of rank into find_standby_for!
Also, if we got an MDS with rank -1 we went ahead and used it. Broke
up the if statement tests to make sure that doesn't happen again.

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