Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/lisk/PhabricatorLiskDAO.php
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | private function newClusterConnection($application, $database, $mode) { | ||||
$this->raiseUnreachable($database, $master_exception); | $this->raiseUnreachable($database, $master_exception); | ||||
} | } | ||||
private function raiseImproperWrite($database) { | private function raiseImproperWrite($database) { | ||||
throw new PhabricatorClusterImproperWriteException( | throw new PhabricatorClusterImproperWriteException( | ||||
pht( | pht( | ||||
'Unable to establish a write-mode connection (to application '. | 'Unable to establish a write-mode connection (to application '. | ||||
'database "%s") because Phabricator is in read-only mode. Whatever '. | 'database "%s") because this server is in read-only mode. Whatever '. | ||||
'you are trying to do does not function correctly in read-only mode.', | 'you are trying to do does not function correctly in read-only mode.', | ||||
$database)); | $database)); | ||||
} | } | ||||
private function raiseImpossibleWrite($database) { | private function raiseImpossibleWrite($database) { | ||||
throw new PhabricatorClusterImpossibleWriteException( | throw new PhabricatorClusterImpossibleWriteException( | ||||
pht( | pht( | ||||
'Unable to connect to master database ("%s"). This is a severe '. | 'Unable to connect to master database ("%s"). This is a severe '. | ||||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |