| 820 | } |
| 821 | |
| 822 | void Paxos::accept_timeout() |
| 823 | { |
| 824 | dout(1) << "accept timeout, calling fresh election" << dendl; |
| 825 | accept_timeout_event = 0; |
| 826 | ceph_assert(mon.is_leader()); |
| 827 | ceph_assert(is_updating() || is_updating_previous() || is_writing() || |
| 828 | is_writing_previous()); |
| 829 | logger->inc(l_paxos_accept_timeout); |
| 830 | mon.bootstrap(); |
| 831 | } |
| 832 | |
| 833 | struct C_Committed : public Context { |
| 834 | Paxos *paxos; |