From: Joao Eduardo Luis Date: Tue, 23 Jul 2013 15:36:52 +0000 (+0100) Subject: mon: OSDMonitor: update the osdmap's latest_full with the new full version X-Git-Tag: v0.61.6~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=10e1de45dc8ace793ecf921f884f90c9daa99c48;p=ceph.git mon: OSDMonitor: update the osdmap's latest_full with the new full version We used to do this on encode_full(), but since [1] we no longer rely on PaxosService to manage the full maps for us. And we forgot to write down the latest_full version to the store, leaving it in a truly outdated state. [1] - 7fb3804fb860dcd0340dd3f7c39eec4315f8e4b6 Fixes: #5704 Backport: cuttlefish Signed-off-by: Joao Eduardo Luis Reviewed-by: Sage Weil (cherry picked from commit a815547ed3e5ffdbbb96c8c0c1b8d6dd8c62bfba) --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 9c854cda86e..6184f2afe72 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -559,6 +559,7 @@ void OSDMonitor::encode_trim_extra(MonitorDBStore::Transaction *tx, version_t fi bufferlist bl; get_version_full(first, bl); put_version_full(tx, first, bl); + put_version_latest_full(tx, first); } bool OSDMonitor::service_should_trim()