Renamed QoS_Atomic => QOS_ATOMIC in some places.
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 22 Apr 2013 07:04:14 +0000 (00:04 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 23 Apr 2013 10:16:56 +0000 (10:16 +0000)
Change-Id: Ib6c4a1e36e8caddd08852d0fdce005ed0bc00cee

includes/job/JobQueueFederated.php

index 7a5d113..b517d55 100644 (file)
@@ -212,7 +212,7 @@ class JobQueueFederated extends JobQueue {
                $partitionRing = new HashRing( $partitionsTry );
                // Because jobs are spread across partitions, per-job de-duplication needs
                // to use a consistent hash to avoid allowing duplicate jobs per partition.
-               // When inserting a batch of de-duplicated jobs, QoS_Atomic is disregarded.
+               // When inserting a batch of de-duplicated jobs, QOS_ATOMIC is disregarded.
                $uJobsByPartition = array(); // (partition name => job list)
                foreach ( $jobs as $key => $job ) {
                        if ( $job->ignoreDuplicates() ) {
@@ -222,7 +222,7 @@ class JobQueueFederated extends JobQueue {
                        }
                }
                // Get the batches of jobs that are not de-duplicated
-               if ( $flags & self::QoS_Atomic ) {
+               if ( $flags & self::QOS_ATOMIC ) {
                        $nuJobBatches = array( $jobs ); // all or nothing
                } else {
                        // Split the jobs into batches and spread them out over servers if there