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.67-rc2~18^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a815547ed3e5ffdbbb96c8c0c1b8d6dd8c62bfba;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 --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 20e4eac88cb5..a8396bf696b1 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -586,6 +586,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); } // -------------