]> 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 19:08:08 +0000 (15:08 -0400)
commit349b3c9bef12728c336cf584ea5c70b8184b66e9
treec8e3a94638905993179135dc1308cf1753bb5915
parenta755a0bce83ee21c6c714d89c0820edcb1a785c7
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>
src/mon/Elector.cc
src/mon/MonCommand.h
src/mon/Monitor.cc
src/mon/Monitor.h