]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: OSDMonitor: update latest_full while rebuilding full maps
authorJoao Eduardo Luis <joao.luis@inktank.com>
Sun, 15 Sep 2013 20:03:50 +0000 (21:03 +0100)
committerSage Weil <sage@inktank.com>
Mon, 23 Sep 2013 21:19:37 +0000 (14:19 -0700)
commit65bbcaf4b68790dae4506c1f5db237077e1ff0ae
tree44d5acf6540a2d4c194cac6dab12a19e8bf5f9f6
parent9b9edb04581cca15e67c567332529f5b3f426743
mon: OSDMonitor: update latest_full while rebuilding full maps

Not doing so will make the monitor rebuild the osdmap full versions, even
though they may have been rebuilt before, every time the monitor starts.

This mostly happens when the cluster is left in an unhealthy state for
a long period of time and incremental versions build up.  Even though we
build the full maps on update_from_paxos(), not updating 'full_latest'
leads to the situation initially described.

Fixes: #6322
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit 81983bab3630520d6c7ee9b7e4a747bc17b8c5c3)
src/mon/OSDMonitor.cc