]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: AuthMonitor: remove dead code to avoid confusion
authorJoao Eduardo Luis <joao.luis@inktank.com>
Tue, 4 Jun 2013 23:13:32 +0000 (00:13 +0100)
committerDan Mick <dan.mick@inktank.com>
Fri, 7 Jun 2013 01:38:46 +0000 (18:38 -0700)
AuthMonitor::election_finished() does nothing.

PaxosService::election_finished() is the one being handled.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/AuthMonitor.cc
src/mon/AuthMonitor.h

index baa95c9e11bb7186f8a9c9998494c13fabe352c5..e6a15ec832abd833ea5785603469fccea42f0101 100644 (file)
@@ -315,12 +315,6 @@ bool AuthMonitor::prepare_update(PaxosServiceMessage *m)
   }
 }
 
-void AuthMonitor::election_finished()
-{
-  dout(10) << "AuthMonitor::election_starting" << dendl;
-  last_allocated_id = 0;
-}
-
 uint64_t AuthMonitor::assign_global_id(MAuth *m, bool should_increase_max)
 {
   int total_mon = mon->monmap->size();
index 5d1422bbc4d7cfffa88b5316ed4e36b770b40fb8..3d305f5630cd0c95c44295f79b6487d42405c986 100644 (file)
@@ -124,7 +124,6 @@ private:
   }
 
   void on_active();
-  void election_finished();
   bool should_propose(double& delay);
   void create_initial();
   void update_from_paxos();