From: Aaron Schulz Date: Sun, 13 Jan 2013 19:22:56 +0000 (-0800) Subject: Set RAII $scope variable in DB job queue. X-Git-Tag: 1.31.0-rc.0~21048^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=fd3570cca19453ad92564bc57edb3ee90ce9cd07;p=lhc%2Fweb%2Fwiklou.git Set RAII $scope variable in DB job queue. Change-Id: I03e1396b4485be62a5bb927f987c6b4816d90d47 --- diff --git a/includes/job/JobQueueDB.php b/includes/job/JobQueueDB.php index 30612fa0ce..1c9c8a74c5 100644 --- a/includes/job/JobQueueDB.php +++ b/includes/job/JobQueueDB.php @@ -89,7 +89,7 @@ class JobQueueDB extends JobQueue { return $size; } - list( $dbr, ) = $this->getSlaveDB(); + list( $dbr, $scope ) = $this->getSlaveDB(); $size = (int)$dbr->selectField( 'job', 'COUNT(*)', array( 'job_cmd' => $this->type, 'job_token' => '' ), __METHOD__ @@ -113,7 +113,7 @@ class JobQueueDB extends JobQueue { return $count; } - list( $dbr, ) = $this->getSlaveDB(); + list( $dbr, $scope ) = $this->getSlaveDB(); $count = (int)$dbr->selectField( 'job', 'COUNT(*)', array( 'job_cmd' => $this->type, "job_token !={$dbr->addQuotes('')}" ), __METHOD__