8use Psr\Log\LoggerInterface;
27 private $trxReplicaLagStatus =
null;
88 $lag = $this->
getLag( $conn );
96 return [
'lag' => $lag,
'since' => microtime(
true ) ];
131 return [
'Server is configured as a read-only replica database.',
'role' ];
133 return [
'Server is configured as a read-only static clone database.',
'role' ];
144 $this->trxReplicaLagStatus =
null;
164 return $conn->
trxLevel() ? $this->trxReplicaLagStatus :
null;