BagOStuff: Don't use $this in a closure

Change-Id: Ib9fb92a70adc2b4d75c30148e17dff6f7765afe1
This commit is contained in:
Kunal Mehta 2015-08-21 13:32:39 -07:00 committed by Ori.livneh
parent a556484ba0
commit 78f1fee559

View file

@ -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 );