From 5f975cdcc0a28649f056b3dc68a2ca36696d64fa Mon Sep 17 00:00:00 2001 From: runsisi Date: Wed, 28 Mar 2018 11:32:18 +0800 Subject: [PATCH] mon/Elector: remove unused member fields start_stamp and ack_stamp Signed-off-by: runsisi --- src/mon/Elector.cc | 2 -- src/mon/Elector.h | 8 -------- 2 files changed, 10 deletions(-) diff --git a/src/mon/Elector.cc b/src/mon/Elector.cc index 6e38550e5f88b..0e5bdb4aa10d8 100644 --- a/src/mon/Elector.cc +++ b/src/mon/Elector.cc @@ -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); diff --git a/src/mon/Elector.h b/src/mon/Elector.h index 4c005c965fe99..07edb6405c52e 100644 --- a/src/mon/Elector.h +++ b/src/mon/Elector.h @@ -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; /** * @} */ -- 2.39.5