Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15437465
D18576.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18576.id.diff
View Options
diff --git a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementAnalyzeWorkflow.php b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementAnalyzeWorkflow.php
--- a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementAnalyzeWorkflow.php
+++ b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementAnalyzeWorkflow.php
@@ -12,7 +12,8 @@
}
public function didExecute(PhutilArgumentParser $args) {
- $this->analyzeTables();
+ $api = $this->getSingleAPI();
+ $this->analyzeTables($api);
return 0;
}
diff --git a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php
--- a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php
+++ b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php
@@ -143,7 +143,7 @@
if (!$this->dryRun) {
$should_analyze = (($err == 0) || ($err == 2));
if ($should_analyze) {
- $this->analyzeTables();
+ $this->analyzeTables($api);
}
}
} catch (Exception $ex) {
@@ -1172,12 +1172,13 @@
->lock();
}
- final protected function analyzeTables() {
+ final protected function analyzeTables(
+ PhabricatorStorageManagementAPI $api) {
+
// Analyzing tables can sometimes have a significant effect on query
// performance, particularly for the fulltext ngrams tables. See T12819
// for some specific examples.
- $api = $this->getSingleAPI();
$conn = $api->getConn(null);
$patches = $this->getPatches();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 26, 7:35 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7462704
Default Alt Text
D18576.id.diff (1 KB)
Attached To
Mode
D18576: Correct `bin/storage analyze` internal API for cluster environments
Attached
Detach File
Event Timeline
Log In to Comment