]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix wip (l_osd_op_wip) perf counter
authorXinze Chi <xinze@xsky.com>
Tue, 29 Dec 2015 14:00:31 +0000 (22:00 +0800)
committerXinze Chi <xinze@xsky.com>
Tue, 29 Dec 2015 14:00:31 +0000 (22:00 +0800)
The l_osd_op_wip is for osd, so it should be the sum of all pgs in osd

Signed-off-by: Xinze Chi <xinze@xsky.com>
src/osd/ReplicatedPG.cc

index 04df7e33dcb23dbd9af44981432414012f9208ce..c98a468fad60bc3da628227337d1995b21a2a4ee 100644 (file)
@@ -8357,7 +8357,7 @@ ReplicatedPG::RepGather *ReplicatedPG::new_repop(OpContext *ctx, ObjectContextRe
   repop_map[repop->rep_tid] = repop;
   repop->get();
 
-  osd->logger->set(l_osd_op_wip, repop_map.size());
+  osd->logger->inc(l_osd_op_wip);
 
   return repop;
 }
@@ -8376,7 +8376,7 @@ void ReplicatedPG::remove_repop(RepGather *repop)
   repop_map.erase(repop->rep_tid);
   repop->put();
 
-  osd->logger->set(l_osd_op_wip, repop_map.size());
+  osd->logger->dec(l_osd_op_wip);
 }
 
 ReplicatedPG::RepGather *ReplicatedPG::simple_repop_create(ObjectContextRef obc)