]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: OSDMonitor: update the osdmap's latest_full with the new full version
authorJoao Eduardo Luis <joao.luis@inktank.com>
Tue, 23 Jul 2013 15:36:52 +0000 (16:36 +0100)
committerSage Weil <sage@inktank.com>
Tue, 23 Jul 2013 16:50:00 +0000 (09:50 -0700)
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 <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
(cherry picked from commit a815547ed3e5ffdbbb96c8c0c1b8d6dd8c62bfba)

src/mon/OSDMonitor.cc

index 9c854cda86ed6215c79f0f3cdfa39025a2195646..6184f2afe72a0d84948e6c9b2402fa649b046856 100644 (file)
@@ -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()