From: Sage Weil Date: Tue, 9 Jul 2013 17:52:48 +0000 (-0700) Subject: mon: no need to reset sync state on restart X-Git-Tag: v0.67-rc1~126^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1f5e6c22548073f241c943fe885bc17f993f8888;p=ceph.git mon: no need to reset sync state on restart If we are in or forcing a sync, we can leave these there until the sync completes. Signed-off-by: Sage Weil --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index e8da4ae6fcba..709a0e110cc3 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -426,11 +426,6 @@ int Monitor::preinit() if (clear_store) { set sync_prefixes = get_sync_targets_names(); store->clear(sync_prefixes); - - MonitorDBStore::Transaction t; - t.erase("mon_sync", "in_sync"); - t.erase("mon_sync", "force_sync"); - store->apply_transaction(t); } }