]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: OSDMonitor: work around a full version bug introduced in 7fb3804fb
authorJoao Eduardo Luis <joao.luis@inktank.com>
Tue, 23 Jul 2013 16:25:13 +0000 (17:25 +0100)
committerSage Weil <sage@inktank.com>
Tue, 23 Jul 2013 16:50:05 +0000 (09:50 -0700)
commitf94956cb1a56ff62e01b7ae218a93c4004470ae5
tree7369231f830bb710cc2c87282a764c34b7729984
parent10e1de45dc8ace793ecf921f884f90c9daa99c48
mon: OSDMonitor: work around a full version bug introduced in 7fb3804fb

In 7fb3804fb860dcd0340dd3f7c39eec4315f8e4b6 we moved the full version
stashing logic to the encode_trim_extra() function.  However, we forgot
to update the osdmap's 'latest_full' key that should always point to
the latest osdmap full version.  This eventually degenerated in a missing
full version after a trim.  This patch works around this bug by looking
for the latest available full osdmap version in the store and updating
'latest_full' to its proper value.

Related-to: #5704
Backport: cuttlefish

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