Skip to content

Commit 292dadf

Browse files
committed
Fix issue when compiling statics with multiple jobs
1 parent 91cb4d4 commit 292dadf

File tree

1 file changed

+6
-0
lines changed
  • lib/internal/Magento/Framework/DB/Adapter/Pdo

1 file changed

+6
-0
lines changed

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,12 @@ private function avoidReusingParentProcessConnection()
432432
$this->parentConnections[] = $this->_connection;
433433
$this->_connection = null;
434434
$this->pid = getmypid();
435+
436+
// Reset config host to avoid issue with multiple connections
437+
if (!empty($this->_config['port'])) {
438+
$this->_config['host'] = implode(':', [$this->_config['host'], $this->_config['port']]);
439+
unset($this->_config['port']);
440+
}
435441
}
436442
}
437443

0 commit comments

Comments
 (0)