22use Psr\Log\LoggerInterface;
41 private $trxReplicaLagStatus =
null;
91 $lag = $this->
getLag( $conn );
99 return [
'lag' => $lag,
'since' => microtime(
true ) ];
122 return [
'Server is configured as a read-only replica database.',
'role' ];
124 return [
'Server is configured as a read-only static clone database.',
'role' ];
135 $this->trxReplicaLagStatus =
null;
155 return $conn->
trxLevel() ? $this->trxReplicaLagStatus :
null;