]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: search for latest full osdmap if record version is missing
authorSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 18:55:42 +0000 (11:55 -0700)
committerSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 19:12:38 +0000 (12:12 -0700)
commit27f31895664fa7f10c1617d486f2a6ece0f97091
treed4b67fe2a7cc0679dc281b94484adfae40228b7c
parent5b0967f03efb1be210b52f24f095f023fe1bc539
mon/OSDMonitor: search for latest full osdmap if record version is missing

In 97462a3213e5e15812c79afc0f54d697b6c498b1 we tried to search for a
recent full osdmap but were looking at the wrong key.  If full_0 was
present we could record that the latest full map was last_committed even
though it wasn't present.  This is fixed in 76cd7ac1c, but we need to
compensate for when get_version_latest_full() gives us a back version
number by repeating the search.

Fixes: #5737
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit c2131d4047156aa2964581c9dbd93846382a07e7)
src/mon/OSDMonitor.cc