From: Sage Weil Date: Fri, 12 Jul 2013 00:42:14 +0000 (-0700) Subject: mon: stash latest state when flagging force_sync X-Git-Tag: v0.67-rc1~59^2~20^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2dc8688a3d88a858cb762fd935f6e9e7c92be26a;p=ceph.git mon: stash latest state when flagging force_sync 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 --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 888e7c4a13c9..e1dd354a430a 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -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);