]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: use vector<MonCommand> throughput for commands
authorSage Weil <sage@redhat.com>
Sat, 5 Aug 2017 19:08:26 +0000 (15:08 -0400)
committerSage Weil <sage@redhat.com>
Mon, 7 Aug 2017 20:13:59 +0000 (16:13 -0400)
commitb8d2f2c358013dd689c54eb6f5a1cb0f7e905321
tree6ca8ae08334a3267c3aeca7e5f226d8281a0e37e
parent9a4953f096d7f3d30697167efbf6124465b79510
mon: use vector<MonCommand> throughput for commands

The old code was pretty messy. This is standardizes on std::vector
throughout.  We also drop the win_election command args because
when we win an election we always set the leader commands to our
commands, and we can do that inside win_command() without passing
them in from here.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 349b3c9bef12728c336cf584ea5c70b8184b66e9)
src/mon/Elector.cc
src/mon/MonCommand.h
src/mon/Monitor.cc
src/mon/Monitor.h