From 78f1fee5593781b3b0a86d9fb20028143938f906 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Fri, 21 Aug 2015 13:32:39 -0700 Subject: [PATCH] BagOStuff: Don't use $this in a closure Change-Id: Ib9fb92a70adc2b4d75c30148e17dff6f7765afe1 --- includes/libs/objectcache/BagOStuff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/objectcache/BagOStuff.php b/includes/libs/objectcache/BagOStuff.php index d72e1a551e..2756143669 100644 --- a/includes/libs/objectcache/BagOStuff.php +++ b/includes/libs/objectcache/BagOStuff.php @@ -294,7 +294,7 @@ abstract class BagOStuff implements LoggerAwareInterface { $latency = .050; // latency skew (err towards keeping lock present) $age = ( microtime( true ) - $lSince + $latency ); if ( ( $age + $latency ) >= $expiry ) { - $this->logger->warning( "Lock for $key held too long ($age sec)." ); + $that->logger->warning( "Lock for $key held too long ($age sec)." ); return; // expired; it's not "safe" to delete the key } $that->unlock( $key ); -- 2.20.1