summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Eduardo Luis <joao.luis@inktank.com>2013-07-23 16:07:24 +0100
committerJoao Eduardo Luis <joao.luis@inktank.com>2013-07-23 16:07:24 +0100
commitc4eff45117a04c9c6f997cb2fbff210db0f2f01c (patch)
tree724e71ce59ea22c8f044554967103ec13871f637
parent8ee10dc4bb73bdd918873f29c70eedc3c7ef1979 (diff)
downloadceph-c4eff45117a04c9c6f997cb2fbff210db0f2f01c.tar.gz
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. Fixes: #5704 Backport: cuttlefish [1] - 7fb3804fb860dcd0340dd3f7c39eec4315f8e4b6
-rw-r--r--src/mon/OSDMonitor.cc1
1 files changed, 1 insertions, 0 deletions
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()