From: Paladox Date: Tue, 3 Dec 2019 18:12:47 +0000 (+0000) Subject: Replace deprecated lSize with lLen X-Git-Tag: 1.31.6~7 X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=28cf457c18df8b25a1aa88228ce3110a807c5148 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 --- 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 ) ) {