* @ingroup LockManager
*/
+use Wikimedia\Rdbms\Database;
use Wikimedia\Rdbms\IDatabase;
+use Wikimedia\Rdbms\DBError;
/**
* Version of LockManager based on using named/row DB locks.
// Tracks peers that couldn't be queried recently to avoid lengthy
// connection timeouts. This is useless if each bucket has one peer.
- $this->statusCache = isset( $config['srvCache'] )
- ? $config['srvCache']
- : new HashBagOStuff();
+ $this->statusCache = $config['srvCache'] ?? new HashBagOStuff();
}
/**