Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/149926

Change subject: Fixed use of wrong class constant
......................................................................

Fixed use of wrong class constant

Change-Id: I6c7e49d16685315f9e84b61ba11d1a3b08730597
---
M includes/jobqueue/JobQueueFederated.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/26/149926/1

diff --git a/includes/jobqueue/JobQueueFederated.php 
b/includes/jobqueue/JobQueueFederated.php
index fce30fb..c4301ee 100644
--- a/includes/jobqueue/JobQueueFederated.php
+++ b/includes/jobqueue/JobQueueFederated.php
@@ -281,7 +281,7 @@
                        }
                        if ( $ok ) {
                                $key = $this->getCacheKey( 'empty' );
-                               $this->cache->set( $key, 'false', 
JobQueueDB::CACHE_TTL_LONG );
+                               $this->cache->set( $key, 'false', 
self::CACHE_TTL_LONG );
                        } else {
                                if ( !$partitionRing->ejectFromLiveRing( 
$partition, 5 ) ) { // blacklist
                                        throw new JobQueueError( "Could not 
insert job(s), no partitions available." );
@@ -303,7 +303,7 @@
                        }
                        if ( $ok ) {
                                $key = $this->getCacheKey( 'empty' );
-                               $this->cache->set( $key, 'false', 
JobQueueDB::CACHE_TTL_LONG );
+                               $this->cache->set( $key, 'false', 
self::CACHE_TTL_LONG );
                        } else {
                                if ( !$partitionRing->ejectFromLiveRing( 
$partition, 5 ) ) { // blacklist
                                        throw new JobQueueError( "Could not 
insert job(s), no partitions available." );
@@ -345,7 +345,7 @@
                $this->throwErrorIfAllPartitionsDown( $failed );
 
                $key = $this->getCacheKey( 'empty' );
-               $this->cache->set( $key, 'true', JobQueueDB::CACHE_TTL_LONG );
+               $this->cache->set( $key, 'true', self::CACHE_TTL_LONG );
 
                return false;
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/149926
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6c7e49d16685315f9e84b61ba11d1a3b08730597
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

Reply via email to