From bc5e7d037afdaf46cfd9e71df0638c03f5b04ab1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 28 Jul 2014 12:03:58 -0700 Subject: [PATCH] Fixed use of wrong class constant Change-Id: I6c7e49d16685315f9e84b61ba11d1a3b08730597 --- includes/jobqueue/JobQueueFederated.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/jobqueue/JobQueueFederated.php b/includes/jobqueue/JobQueueFederated.php index fce30fb52e..c4301eed9d 100644 --- a/includes/jobqueue/JobQueueFederated.php +++ b/includes/jobqueue/JobQueueFederated.php @@ -281,7 +281,7 @@ class JobQueueFederated extends JobQueue { } 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 @@ class JobQueueFederated extends JobQueue { } 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 @@ class JobQueueFederated extends JobQueue { $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; } -- 2.20.1