Skip to content

Commit d3745ec

Browse files
committed
MCP-903: Fix default connection = db setting after Magento installation
- Add lock prefix if it is empty string to fix config rewrite when setup:config:set is applied after setup:install in integration tests;
1 parent 36b7fa4 commit d3745ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Lock/Backend/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private function addPrefix(string $name): string
162162
*/
163163
private function getPrefix(): string
164164
{
165-
if ($this->prefix === null) {
165+
if ($this->prefix === null || $this->prefix === '') {
166166
$this->prefix = (string)$this->deploymentConfig->get(
167167
ConfigOptionsListConstants::CONFIG_PATH_DB_CONNECTION_DEFAULT
168168
. '/'

0 commit comments

Comments
 (0)