]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
elector: split ElectionLogic into its own compilation unit
authorGreg Farnum <gfarnum@redhat.com>
Wed, 19 Jun 2019 23:32:30 +0000 (16:32 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Mon, 19 Aug 2019 20:04:59 +0000 (13:04 -0700)
commit8eac58354f3de0a6ca6bc496438b23c8068c4e91
tree3c7d85a0b06d506fa3790929348d150bc5b45542
parent8a95e2c8fb690bcace1fb1b365d2972129feb41d
elector: split ElectionLogic into its own compilation unit

Just copy the files, then delete the inappropriate bits.
Switched to using ldout in ElectionLogic.cc, added a few
functions I missed to the ElectionOwner interface, and moved
Elector() into the .cc so I could grab cct out of it.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mon/CMakeLists.txt
src/mon/ElectionLogic.cc [new file with mode: 0644]
src/mon/ElectionLogic.h [new file with mode: 0644]
src/mon/Elector.cc
src/mon/Elector.h