]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: remove the redundant list swap in paxos commit_proposal 10011/head
authorsongbaisen <song.baisen@zte.com.cn>
Tue, 28 Jun 2016 11:02:04 +0000 (19:02 +0800)
committersongbaisen <song.baisen@zte.com.cn>
Tue, 28 Jun 2016 11:02:04 +0000 (19:02 +0800)
 Signed-off-by:song baisen <song.baisen@zte.com.cn>

src/mon/Paxos.cc

index c294fb26d1ce614b236e8413b1971b782804d13a..de54ce240a9ef107a83d6b80d1424222e2d26a6d 100644 (file)
@@ -1016,9 +1016,7 @@ void Paxos::commit_proposal()
   assert(mon->is_leader());
   assert(is_refresh());
 
-  list<Context*> ls;
-  ls.swap(committing_finishers);
-  finish_contexts(g_ceph_context, ls);
+  finish_contexts(g_ceph_context, committing_finishers);
 }
 
 void Paxos::finish_round()