From c338e27961c25fd13a549bbe632fbe791b639e7b Mon Sep 17 00:00:00 2001 From: sageweil Date: Thu, 30 Aug 2007 20:46:43 +0000 Subject: [PATCH] reorder bugfix git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1749 29311d96-e01e-0410-9327-a35deaab8ce9 --- trunk/ceph/osd/ReplicatedPG.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/ceph/osd/ReplicatedPG.cc b/trunk/ceph/osd/ReplicatedPG.cc index 40db1faa311b3..9801a13d5da9d 100644 --- a/trunk/ceph/osd/ReplicatedPG.cc +++ b/trunk/ceph/osd/ReplicatedPG.cc @@ -409,6 +409,8 @@ void ReplicatedPG::do_op_reply(MOSDOpReply *r) tid_t rep_tid = r->get_rep_tid(); int fromosd = r->get_source().num(); + osd->take_peer_stat(fromosd, r->get_peer_stat()); + if (rep_gather.count(rep_tid)) { // oh, good. repop_ack(rep_gather[rep_tid], @@ -420,8 +422,6 @@ void ReplicatedPG::do_op_reply(MOSDOpReply *r) // early ack. waiting_for_repop[rep_tid].push_back(r); } - - osd->take_peer_stat(fromosd, r->get_peer_stat()); } } -- 2.39.5