$timeout = $timeout ?: $this->mWaitTimeout;
$result = $conn->masterPosWait( $this->mWaitForPos, $timeout );
if ( $result == -1 || is_null( $result ) ) {
// Timed out waiting for replica DB, use master instead
$this->replLogger->warning(
$timeout = $timeout ?: $this->mWaitTimeout;
$result = $conn->masterPosWait( $this->mWaitForPos, $timeout );
if ( $result == -1 || is_null( $result ) ) {
// Timed out waiting for replica DB, use master instead
$this->replLogger->warning(
- __METHOD__ . ": Timed out waiting on {host} pos {$this->mWaitForPos}",
- [ 'host' => $server ]
+ __METHOD__ . ': Timed out waiting on {host} pos {pos}',
+ [ 'host' => $server, 'pos' => $this->mWaitForPos ]
if ( $pos instanceof DBMasterPos ) {
$result = $conn->masterPosWait( $pos, $timeout );
if ( $result == -1 || is_null( $result ) ) {
if ( $pos instanceof DBMasterPos ) {
$result = $conn->masterPosWait( $pos, $timeout );
if ( $result == -1 || is_null( $result ) ) {
- $msg = __METHOD__ . ": Timed out waiting on {$conn->getServer()} pos {$pos}";
- $this->replLogger->warning( "$msg" );
+ $msg = __METHOD__ . ': Timed out waiting on {host} pos {pos}';
+ $this->replLogger->warning( $msg,
+ [ 'host' => $conn->getServer(), 'pos' => $pos ] );