]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: drop useless sync_reset() calls
authorSage Weil <sage@inktank.com>
Tue, 30 Jul 2013 00:10:09 +0000 (17:10 -0700)
committerSage Weil <sage@inktank.com>
Tue, 30 Jul 2013 00:10:09 +0000 (17:10 -0700)
These are both right before bootstrap(), which also resets.

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

index 92e6fa4ca76f628423c9aba87744796e385d5d6b..3b19b51405447cbd7f2c0d7aaf12b764149712ae 100644 (file)
@@ -923,8 +923,6 @@ void Monitor::sync_finish(version_t last_committed)
   t.erase("mon_sync", "last_committed_floor");
   store->apply_transaction(t);
 
-  sync_reset();
-
   assert(g_conf->mon_sync_requester_kill_at != 9);
 
   init_paxos();
@@ -1173,7 +1171,6 @@ void Monitor::handle_sync_chunk(MMonSync *m)
 void Monitor::handle_sync_no_cookie(MMonSync *m)
 {
   dout(10) << __func__ << dendl;
-  sync_reset();
   bootstrap();
 }