Differential D21584 Diff 51386 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php
Show First 20 Lines • Show All 1,223 Lines • ▼ Show 20 Lines | final protected function lock(PhabricatorStorageManagementAPI $api) { | ||||
$parameters = array( | $parameters = array( | ||||
'refKey' => $api->getRef()->getRefKey(), | 'refKey' => $api->getRef()->getRefKey(), | ||||
); | ); | ||||
// We disable logging for this lock because we may not have created the | // We disable logging for this lock because we may not have created the | ||||
// log table yet, or may need to adjust it. | // log table yet, or may need to adjust it. | ||||
return PhabricatorGlobalLock::newLock('adjust', $parameters) | return PhabricatorGlobalLock::newLock('adjust', $parameters) | ||||
->useSpecificConnection($api->getConn(null)) | ->setExternalConnection($api->getConn(null)) | ||||
->setDisableLogging(true) | ->setDisableLogging(true) | ||||
->lock(); | ->lock(); | ||||
} | } | ||||
final protected function analyzeTables( | final protected function analyzeTables( | ||||
PhabricatorStorageManagementAPI $api) { | PhabricatorStorageManagementAPI $api) { | ||||
// Analyzing tables can sometimes have a significant effect on query | // Analyzing tables can sometimes have a significant effect on query | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |