Move QoS_Atomic -> QOS_ATOMIC.
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 28 Mar 2013 21:00:09 +0000 (14:00 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 29 Mar 2013 23:03:52 +0000 (23:03 +0000)
Change-Id: I876272bd440affab0e934199895e12fe2a5c9449

includes/job/Job.php
includes/job/JobQueueDB.php
includes/job/JobQueueRedis.php

index e12bc95..7e2fbf5 100644 (file)
@@ -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 );
        }
 
        /**
index 379f010..d6e96ef 100644 (file)
@@ -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(
index bd23174..706d42d 100644 (file)
@@ -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