]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
elector: swap order of parameters in ElectionLogic::receive_propose
authorGreg Farnum <gfarnum@redhat.com>
Wed, 10 Jul 2019 17:51:31 +0000 (10:51 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Mon, 19 Aug 2019 20:04:59 +0000 (13:04 -0700)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mon/ElectionLogic.cc
src/mon/ElectionLogic.h
src/mon/Elector.cc

index 1c4c01d4e9ca6745c37cb313f1cc9e59ce38d5d3..51c81598d4bc8f18921f304841d1243b097f1caa 100644 (file)
@@ -132,7 +132,7 @@ void ElectionLogic::declare_victory()
   elector->message_victory(new_quorum);
 }
 
-void ElectionLogic::receive_propose(epoch_t mepoch, int from)
+void ElectionLogic::receive_propose(int from, epoch_t mepoch)
 {
   if (mepoch > epoch) {
     bump_epoch(mepoch);
index 0d60115a6c87104f136e72762dff60e784084ce5..f146d055dd86fb63e4bbbaae75105ad2a55825e9 100644 (file)
@@ -229,7 +229,7 @@ public:
    * @param mepoch The epoch of the proposal
    * @param from The rank proposing itself as leader
    */
-  void receive_propose(epoch_t mepoch, int from);
+  void receive_propose(int from, epoch_t mepoch);
   /**
    * Handle a message from some other participant Acking us as the Leader.
    *
index e3eb3bd118cb8379dd06099835219960470abc61..7268197c60503ac1c477f60dda6bd8c7a3559596 100644 (file)
@@ -247,7 +247,7 @@ void Elector::handle_propose(MonOpRequestRef op)
             << dendl;
     nak_old_peer(op);
   }
-  logic.receive_propose(m->epoch, from);
+  logic.receive_propose(from, m->epoch);
 }
 
 void Elector::handle_ack(MonOpRequestRef op)