http://www.mediawiki.org/wiki/Special:Code/MediaWiki/83630

Revision: 83630
Author:   tstarling
Date:     2011-03-10 02:28:09 +0000 (Thu, 10 Mar 2011)
Log Message:
-----------
MFT 83629: stats for duplicate removal

Modified Paths:
--------------
    branches/wmf/1.17wmf1/includes/job/JobQueue.php

Property Changed:
----------------
    branches/wmf/1.17wmf1/includes/job/JobQueue.php

Modified: branches/wmf/1.17wmf1/includes/job/JobQueue.php
===================================================================
--- branches/wmf/1.17wmf1/includes/job/JobQueue.php     2011-03-10 02:27:15 UTC 
(rev 83629)
+++ branches/wmf/1.17wmf1/includes/job/JobQueue.php     2011-03-10 02:28:09 UTC 
(rev 83630)
@@ -77,8 +77,13 @@
                        $row->job_id );
 
                $dbw->delete( 'job', $job->insertFields(), __METHOD__ );
+               $affected = $dbw->affectedRows();
                $dbw->commit();
 
+               if ( $affected ) {
+                       wfIncrStats( 'job-dup-delete', $affected );
+               }
+
                wfProfileOut( __METHOD__ );
                return $job;
        }
@@ -169,8 +174,13 @@
                // Deadlock prone section
                $dbw->begin();
                $dbw->delete( 'job', $job->insertFields(), __METHOD__ );
+               $affected = $dbw->affectedRows();
                $dbw->commit();
 
+               if ( $affected ) {
+                       wfIncrStats( 'job-dup-delete', $affected );
+               }
+
                wfProfileOut( __METHOD__ );
                return $job;
        }


Property changes on: branches/wmf/1.17wmf1/includes/job/JobQueue.php
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/REL1_15/phase3/includes/job/JobQueue.php:51646
/branches/new-installer/phase3/includes/job/JobQueue.php:43664-66004
/branches/sqlite/includes/job/JobQueue.php:58211-58321
/branches/wmf/1.16wmf4/includes/job/JobQueue.php:67177,69199,76243,77266
/branches/wmf-deployment/includes/job/JobQueue.php:53381,60970
/trunk/phase3/includes/job/JobQueue.php:83590,83617
   + /branches/REL1_15/phase3/includes/job/JobQueue.php:51646
/branches/new-installer/phase3/includes/job/JobQueue.php:43664-66004
/branches/sqlite/includes/job/JobQueue.php:58211-58321
/branches/wmf/1.16wmf4/includes/job/JobQueue.php:67177,69199,76243,77266
/branches/wmf-deployment/includes/job/JobQueue.php:53381,60970
/trunk/phase3/includes/job/JobQueue.php:83590,83617,83629


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to