diff options
-rw-r--r-- | src/mon/OSDMonitor.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 9c854cda86e..a86e13f1423 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -124,7 +124,8 @@ void OSDMonitor::update_from_paxos(bool *need_bootstrap) * transaction. Start with whichever is newer. */ version_t latest_full = get_version_latest_full(); - if (latest_full == 0 && get_first_committed() > 1) + if ((latest_full == 0 || latest_full < get_first_committed()) && + get_first_committed() > 1) latest_full = get_first_committed(); if ((latest_full > 0) && (latest_full > osdmap.epoch)) { bufferlist latest_bl; |