]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PaxosService: remove redundant check
authorSage Weil <sage@inktank.com>
Fri, 12 Jul 2013 21:59:30 +0000 (14:59 -0700)
committerSage Weil <sage@inktank.com>
Sat, 13 Jul 2013 20:00:06 +0000 (13:00 -0700)
_active checks is_active() and rescheduled itself already.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/mon/PaxosService.cc

index 973277d38e84ce95ff1a628063d4954f643f07f7..e20322a4a6b5b54636122d160d0612885f0f60d3 100644 (file)
@@ -254,10 +254,7 @@ void PaxosService::election_finished()
   finish_contexts(g_ceph_context, waiting_for_finished_proposal, -EAGAIN);
 
   // make sure we update our state
-  if (is_active())
-    _active();
-  else
-    wait_for_active(new C_Active(this));
+  _active();
 }
 
 void PaxosService::_active()