The old last_committed is already committed; don't reapply. This also fixes
the case where lc was 0 (i.e., we did get_cookie_recent from the beginning
of time).
Signed-off-by: Sage Weil <sage@inktank.com>
if (!sync_full) {
dout(10) << __func__ << " applying recent paxos transactions as we go" << dendl;
MonitorDBStore::Transaction tx;
- paxos->read_and_prepare_transactions(&tx, paxos->get_version(), m->last_committed);
+ paxos->read_and_prepare_transactions(&tx, paxos->get_version() + 1, m->last_committed);
tx.put(paxos->get_name(), "last_committed", m->last_committed);
dout(30) << __func__ << " tx dump:\n";