mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 05:42:40 +01:00
Close all DB connections when Daemons sleep
Summary: Fixes T2933 Test Plan: As guided by Evan - by setting $tasks = array(); in PhabricatorTaskmasterDaemon.php and running 'phd debug taskmaster' and 'show full processlist' on mysql as root. No extra connections detected. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2933 Differential Revision: https://secure.phabricator.com/D5654
This commit is contained in:
parent
9bbce8de42
commit
d028790dd7
1 changed files with 5 additions and 0 deletions
|
@ -9,4 +9,9 @@ abstract class PhabricatorDaemon extends PhutilDaemon {
|
|||
$root = dirname($phabricator);
|
||||
require_once $root.'/scripts/__init_script__.php';
|
||||
}
|
||||
|
||||
protected function willSleep($duration) {
|
||||
LiskDAO::closeAllConnections();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue