Page MenuHomePhabricator

D11385.diff
No OneTemporary

D11385.diff

diff --git a/src/infrastructure/daemon/control/PhabricatorDaemonReference.php b/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
--- a/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
+++ b/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
@@ -32,11 +32,16 @@
$ref->pid = idx($dict, 'pid');
$ref->start = idx($dict, 'start');
- $ref->daemonLog = id(new PhabricatorDaemonLog())->loadOneWhere(
- 'daemon = %s AND pid = %d AND dateCreated = %d',
- $ref->name,
- $ref->pid,
- $ref->start);
+ try {
+ $ref->daemonLog = id(new PhabricatorDaemonLog())->loadOneWhere(
+ 'daemon = %s AND pid = %d AND dateCreated = %d',
+ $ref->name,
+ $ref->pid,
+ $ref->start);
+ } catch (AphrontQueryException $ex) {
+ // Ignore the exception. We want to be able to terminate the daemons,
+ // even if MySQL is down.
+ }
return $ref;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 11, 11:07 AM (2 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6750759
Default Alt Text
D11385.diff (960 B)

Event Timeline