1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-08 22:01:03 +01:00
phorge-phorge/src/infrastructure/storage
epriestley f8eec38c94 When "mysqli->real_connect()" fails without setting an error code, recover more gracefully
Summary: Depends on D20779. Ref T13403. Bad parameters may cause this call to fail without setting an error code; if it does, catch the issue and go down the normal connection error pathway.

Test Plan:
  - With "mysql.port" set to "quack", ran `bin/storage probe`.
  - Before: wild mess of warnings as the code continued below and failed when trying to interact with the connection.
  - After: clean connection failure with a useful error message.

Maniphest Tasks: T13403

Differential Revision: https://secure.phabricator.com/D20780
2019-09-03 12:51:20 -07:00
..
__tests__ Update PhabricatorLiskDAO::chunkSQL() for new %Q semantics 2018-11-13 08:59:18 -08:00
connection When "mysqli->real_connect()" fails without setting an error code, recover more gracefully 2019-09-03 12:51:20 -07:00
exception Move web application classes into "phabricator/" 2019-09-02 07:58:59 -07:00
future Move web application classes into "phabricator/" 2019-09-02 07:58:59 -07:00
lisk Straighten out replication/cache behavior in "bin/storage dump" 2019-08-28 08:25:40 -07:00
management Straighten out replication/cache behavior in "bin/storage dump" 2019-08-28 08:25:40 -07:00
patch Rename "pastebin" database to "paste" 2019-07-19 05:53:26 -07:00
schema When storage is partitioned, refuse to serve requests unless web and databases agree on partitioning 2016-11-22 04:15:46 -08:00
xsprintf Move web application classes into "phabricator/" 2019-09-02 07:58:59 -07:00