Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/cluster/PhabricatorDatabaseRefParser.php
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | if ($is_partitioned) { | ||||
continue; | continue; | ||||
} | } | ||||
$server = $config[$key]; | $server = $config[$key]; | ||||
$partition = idx($server, 'partition'); | $partition = idx($server, 'partition'); | ||||
if (!is_array($partition)) { | if (!is_array($partition)) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Phabricator is configured with multiple master databases, '. | 'This server is configured with multiple master databases, '. | ||||
'but master "%s" is missing a "partition" configuration key to '. | 'but master "%s" is missing a "partition" configuration key to '. | ||||
'define application partitioning.', | 'define application partitioning.', | ||||
$ref->getRefKey())); | $ref->getRefKey())); | ||||
} | } | ||||
$application_map = array(); | $application_map = array(); | ||||
foreach ($partition as $application) { | foreach ($partition as $application) { | ||||
if ($application === 'default') { | if ($application === 'default') { | ||||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |