]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: no need to reset sync state on restart
authorSage Weil <sage@inktank.com>
Tue, 9 Jul 2013 17:52:48 +0000 (10:52 -0700)
committerSage Weil <sage@inktank.com>
Tue, 9 Jul 2013 18:05:48 +0000 (11:05 -0700)
If we are in or forcing a sync, we can leave these there until the sync
completes.

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

index e8da4ae6fcbab478d95c758de45e939f8ea90fe7..709a0e110cc3c0efd2562b658870341e2a47d769 100644 (file)
@@ -426,11 +426,6 @@ int Monitor::preinit()
     if (clear_store) {
       set<string> 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);
     }
   }