Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/56526
Change subject: Move QoS_Atomic -> QOS_ATOMIC.
......................................................................
Move QoS_Atomic -> QOS_ATOMIC.
Change-Id: I876272bd440affab0e934199895e12fe2a5c9449
---
M includes/job/Job.php
M includes/job/JobQueueDB.php
M includes/job/JobQueueRedis.php
3 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/26/56526/1
diff --git a/includes/job/Job.php b/includes/job/Job.php
index e12bc950..7e2fbf5 100644
--- a/includes/job/Job.php
+++ b/includes/job/Job.php
@@ -102,7 +102,7 @@
* @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 379f010..d6e96ef 100644
--- a/includes/job/JobQueueDB.php
+++ b/includes/job/JobQueueDB.php
@@ -160,7 +160,7 @@
}
$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 bd23174..706d42d 100644
--- a/includes/job/JobQueueRedis.php
+++ b/includes/job/JobQueueRedis.php
@@ -180,7 +180,7 @@
$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
--
To view, visit https://gerrit.wikimedia.org/r/56526
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I876272bd440affab0e934199895e12fe2a5c9449
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits