From fd3570cca19453ad92564bc57edb3ee90ce9cd07 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 13 Jan 2013 11:22:56 -0800 Subject: [PATCH] Set RAII $scope variable in DB job queue. Change-Id: I03e1396b4485be62a5bb927f987c6b4816d90d47 --- includes/job/JobQueueDB.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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__ -- 2.20.1