[JobQueue] Added __METHOD__ to delete() call.
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 6 Dec 2012 23:41:31 +0000 (15:41 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 6 Dec 2012 23:41:31 +0000 (15:41 -0800)
Change-Id: If2644e2d0ef12b6ad68b7229f1e60a3d50fc139d

includes/job/JobQueueDB.php

index 3e057eb..9f31060 100644 (file)
@@ -372,7 +372,8 @@ class JobQueueDB extends JobQueue {
                $dbw->commit( __METHOD__, 'flush' ); // flush existing transaction
 
                // Delete a row with a single DELETE without holding row locks over RTTs...
-               $dbw->delete( 'job', array( 'job_cmd' => $this->type, 'job_id' => $job->getId() ) );
+               $dbw->delete( 'job',
+                       array( 'job_cmd' => $this->type, 'job_id' => $job->getId() ), __METHOD__ );
 
                return true;
        }