From 28cf457c18df8b25a1aa88228ce3110a807c5148 Mon Sep 17 00:00:00 2001 From: Paladox Date: Tue, 3 Dec 2019 18:12:47 +0000 Subject: [PATCH] Replace deprecated lSize with lLen lSize is an alias to lLen according to [1] [1] https://github.com/phpredis/phpredis/blob/9f4ededa4139f0af324aab56773f26be5a9d1783/README.markdown#L2148 Bug: T239734 Change-Id: I5b72fbe61e313511b69e8d2e96c2042742370b85 --- includes/jobqueue/JobQueueRedis.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/jobqueue/JobQueueRedis.php b/includes/jobqueue/JobQueueRedis.php index 34aba8adc4..759662df90 100644 --- a/includes/jobqueue/JobQueueRedis.php +++ b/includes/jobqueue/JobQueueRedis.php @@ -132,7 +132,7 @@ class JobQueueRedis extends JobQueue { protected function doGetSize() { $conn = $this->getConnection(); try { - return $conn->lSize( $this->getQueueKey( 'l-unclaimed' ) ); + return $conn->lLen( $this->getQueueKey( 'l-unclaimed' ) ); } catch ( RedisException $e ) { $this->throwRedisException( $conn, $e ); } @@ -607,7 +607,7 @@ LUA; try { $conn->multi( Redis::PIPELINE ); foreach ( $types as $type ) { - $conn->lSize( $this->getQueueKey( 'l-unclaimed', $type ) ); + $conn->lLen( $this->getQueueKey( 'l-unclaimed', $type ) ); } $res = $conn->exec(); if ( is_array( $res ) ) { -- 2.20.1