]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Elector: remove unused member fields start_stamp and ack_stamp 21091/head
authorrunsisi <runsisi@zte.com.cn>
Wed, 28 Mar 2018 03:32:18 +0000 (11:32 +0800)
committerrunsisi <runsisi@zte.com.cn>
Wed, 28 Mar 2018 03:36:37 +0000 (11:36 +0800)
Signed-off-by: runsisi <runsisi@zte.com.cn>
src/mon/Elector.cc
src/mon/Elector.h

index 6e38550e5f88b7121b81e4b8ab1bbac349b058e9..0e5bdb4aa10d8bdf231c69ecccc9d2b8465ca06c 100644 (file)
@@ -93,7 +93,6 @@ void Elector::start()
     int r = mon->store->apply_transaction(t);
     assert(r >= 0);
   }
-  start_stamp = ceph_clock_now();
   electing_me = true;
   acked_me[mon->rank].cluster_features = CEPH_FEATURES_ALL;
   acked_me[mon->rank].mon_features = ceph::features::mon::get_supported();
@@ -124,7 +123,6 @@ void Elector::defer(int who)
 
   // ack them
   leader_acked = who;
-  ack_stamp = ceph_clock_now();
   MMonElection *m = new MMonElection(MMonElection::OP_ACK, epoch, mon->monmap);
   m->mon_features = ceph::features::mon::get_supported();
   mon->collect_metadata(&m->metadata);
index 4c005c965fe9901de512d90a8c97709243775d3a..07edb6405c52ed444b988b5fc16f382c393566ac 100644 (file)
@@ -120,10 +120,6 @@ class Elector {
    * rank is lower than ours).
    */
   bool     electing_me;
-  /**
-   * Holds the time at which we started the election.
-   */
-  utime_t  start_stamp;
   /**
    * Set containing all those that acked our proposal to become the Leader.
    *
@@ -142,10 +138,6 @@ class Elector {
    * Indicates who we have acked
    */
   int      leader_acked;
-  /**
-   * Indicates when we have acked it
-   */
-  utime_t   ack_stamp;
   /**
    * @}
    */