Index: branches/wmf/1.17wmf1/includes/job/JobQueue.php |
— | — | @@ -77,8 +77,13 @@ |
78 | 78 | $row->job_id ); |
79 | 79 | |
80 | 80 | $dbw->delete( 'job', $job->insertFields(), __METHOD__ ); |
| 81 | + $affected = $dbw->affectedRows(); |
81 | 82 | $dbw->commit(); |
82 | 83 | |
| 84 | + if ( $affected ) { |
| 85 | + wfIncrStats( 'job-dup-delete', $affected ); |
| 86 | + } |
| 87 | + |
83 | 88 | wfProfileOut( __METHOD__ ); |
84 | 89 | return $job; |
85 | 90 | } |
— | — | @@ -169,8 +174,13 @@ |
170 | 175 | // Deadlock prone section |
171 | 176 | $dbw->begin(); |
172 | 177 | $dbw->delete( 'job', $job->insertFields(), __METHOD__ ); |
| 178 | + $affected = $dbw->affectedRows(); |
173 | 179 | $dbw->commit(); |
174 | 180 | |
| 181 | + if ( $affected ) { |
| 182 | + wfIncrStats( 'job-dup-delete', $affected ); |
| 183 | + } |
| 184 | + |
175 | 185 | wfProfileOut( __METHOD__ ); |
176 | 186 | return $job; |
177 | 187 | } |
Property changes on: branches/wmf/1.17wmf1/includes/job/JobQueue.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
178 | 188 | Merged /trunk/phase3/includes/job/JobQueue.php:r83629 |