From bdd541065e42ffd08c0b2ec73de51020c77df4bd Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 28 Mar 2013 14:00:09 -0700 Subject: [PATCH] Move QoS_Atomic -> QOS_ATOMIC. Change-Id: I876272bd440affab0e934199895e12fe2a5c9449 --- includes/job/Job.php | 2 +- includes/job/JobQueueDB.php | 2 +- includes/job/JobQueueRedis.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/job/Job.php b/includes/job/Job.php index e12bc95058..7e2fbf567b 100644 --- a/includes/job/Job.php +++ b/includes/job/Job.php @@ -102,7 +102,7 @@ abstract class Job { * @deprecated 1.21 */ public static function safeBatchInsert( $jobs ) { - return JobQueueGroup::singleton()->push( $jobs, JobQueue::QoS_Atomic ); + return JobQueueGroup::singleton()->push( $jobs, JobQueue::QOS_ATOMIC ); } /** diff --git a/includes/job/JobQueueDB.php b/includes/job/JobQueueDB.php index 379f0105a6..d6e96ef3ed 100644 --- a/includes/job/JobQueueDB.php +++ b/includes/job/JobQueueDB.php @@ -160,7 +160,7 @@ class JobQueueDB extends JobQueue { } $key = $this->getCacheKey( 'empty' ); - $atomic = ( $flags & self::QoS_Atomic ); + $atomic = ( $flags & self::QOS_ATOMIC ); $cache = $this->cache; $dbw->onTransactionIdle( diff --git a/includes/job/JobQueueRedis.php b/includes/job/JobQueueRedis.php index bd23174a8d..706d42d595 100644 --- a/includes/job/JobQueueRedis.php +++ b/includes/job/JobQueueRedis.php @@ -180,7 +180,7 @@ class JobQueueRedis extends JobQueue { $conn = $this->getConnection(); try { // Actually push the non-duplicate jobs into the queue... - if ( $flags & self::QoS_Atomic ) { + if ( $flags & self::QOS_ATOMIC ) { $batches = array( $items ); // all or nothing } else { $batches = array_chunk( $items, 500 ); // avoid tying up the server -- 2.20.1