diff options
author | Joao Eduardo Luis <joao.luis@inktank.com> | 2013-07-23 16:36:52 +0100 |
---|---|---|
committer | Joao Eduardo Luis <joao.luis@inktank.com> | 2013-07-23 16:36:52 +0100 |
commit | 1c5f7f422353436bfae04eabe4306c8b931dfdd0 (patch) | |
tree | 71590bb8618a3d6582623bba2a63a8add46a2875 | |
parent | 4b4434d1bf6045ea669a946dc3bf636d40f0271f (diff) | |
download | ceph-1c5f7f422353436bfae04eabe4306c8b931dfdd0.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
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
-rw-r--r-- | src/mon/OSDMonitor.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 20e4eac88cb..a8396bf696b 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); } // ------------- |