Differential D21784 Diff 51940 src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | if ($versions) { | ||||
foreach ($bindings as $binding) { | foreach ($bindings as $binding) { | ||||
$device_map[$binding->getDevicePHID()] = true; | $device_map[$binding->getDevicePHID()] = true; | ||||
} | } | ||||
if (count($device_map) > 1) { | if (count($device_map) > 1) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Repository "%s" exists on more than one device, but no device '. | 'Repository "%s" exists on more than one device, but no device '. | ||||
'has any repository version information. Phabricator can not '. | 'has any repository version information. There is no way for the '. | ||||
'guess which copy of the existing data is authoritative. Promote '. | 'software to determine which copy of the existing data is '. | ||||
'a device or see "Ambiguous Leaders" in the documentation.', | 'authoritative. Promote a device or see "Ambiguous Leaders" in '. | ||||
'the documentation.', | |||||
$repository->getDisplayName())); | $repository->getDisplayName())); | ||||
} | } | ||||
if (empty($device_map[$device->getPHID()])) { | if (empty($device_map[$device->getPHID()])) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Repository "%s" is being synchronized on device "%s", but '. | 'Repository "%s" is being synchronized on device "%s", but '. | ||||
'this device is not bound to the corresponding cluster '. | 'this device is not bound to the corresponding cluster '. | ||||
▲ Show 20 Lines • Show All 655 Lines • Show Last 20 Lines |