]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: stash latest state when flagging force_sync
authorSage Weil <sage@inktank.com>
Fri, 12 Jul 2013 00:42:14 +0000 (17:42 -0700)
committerSage Weil <sage@inktank.com>
Fri, 12 Jul 2013 18:28:18 +0000 (11:28 -0700)
Store our latest state when we set the force_sync flag.  This is important
because we will clear the store the next time we start up and may not be
able to get a useful monmap at that point.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Monitor.cc

index 888e7c4a13c961a514b0a210cde30c8bba31867c..e1dd354a430ad9886f1b59959b872a234d077086 100644 (file)
@@ -1544,6 +1544,7 @@ void Monitor::sync_force(Formatter *f, ostream& ss)
   }
 
   MonitorDBStore::Transaction tx;
+  sync_stash_critical_state(&tx);
   tx.put("mon_sync", "force_sync", 1);
   store->apply_transaction(tx);