From: songbaisen Date: Tue, 28 Jun 2016 11:02:04 +0000 (+0800) Subject: mon: remove the redundant list swap in paxos commit_proposal X-Git-Tag: v11.0.1~272^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10011%2Fhead;p=ceph.git mon: remove the redundant list swap in paxos commit_proposal Signed-off-by:song baisen --- diff --git a/src/mon/Paxos.cc b/src/mon/Paxos.cc index c294fb26d1ce..de54ce240a9e 100644 --- a/src/mon/Paxos.cc +++ b/src/mon/Paxos.cc @@ -1016,9 +1016,7 @@ void Paxos::commit_proposal() assert(mon->is_leader()); assert(is_refresh()); - list ls; - ls.swap(committing_finishers); - finish_contexts(g_ceph_context, ls); + finish_contexts(g_ceph_context, committing_finishers); } void Paxos::finish_round()