Signed-off-by: runsisi <runsisi@zte.com.cn>
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();
// 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);
* 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.
*
* Indicates who we have acked
*/
int leader_acked;
- /**
- * Indicates when we have acked it
- */
- utime_t ack_stamp;
/**
* @}
*/