]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: drop win_election() _reset() kludge and strengthen assertions
authorSage Weil <sage@inktank.com>
Sat, 13 Jul 2013 15:38:40 +0000 (08:38 -0700)
committerSage Weil <sage@inktank.com>
Mon, 15 Jul 2013 20:42:54 +0000 (13:42 -0700)
commiteac559f47460ff59b580862b89c7c4fe8c48e3ca
tree94bcfdcecaaa05f0f3eabf097c854dcac8e6b3b4
parentc67d50b86b939766f0d378e4334f177be815b6f8
mon: drop win_election() _reset() kludge and strengthen assertions

This is only there for the benefit of win_standalone_election(), but it
doesn't need it, it clutters the code, and weakens our assertions.

Now the only win_election() callers are win_standalone_election() (which
is a single path that just did _reset()) and from the elector.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Monitor.cc