Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14835916
D17837.id42911.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
D17837.id42911.diff
View Options
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
@@ -1090,7 +1090,9 @@
}
$t_begin = microtime(true);
- $api->applyPatch($patch);
+ if (!$is_dryrun) {
+ $api->applyPatch($patch);
+ }
$t_end = microtime(true);
$duration = ($t_end - $t_begin);
@@ -1100,7 +1102,9 @@
// If we're explicitly reapplying this patch, we don't need to
// mark it as applied.
if (!isset($state_map[$ref_key][$key])) {
- $api->markPatchApplied($key, ($t_end - $t_begin));
+ if (!$is_dryrun) {
+ $api->markPatchApplied($key, ($t_end - $t_begin));
+ }
$applied_map[$ref_key][$key] = true;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 31, 11:26 PM (17 h, 24 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7078204
Default Alt Text
D17837.id42911.diff (1 KB)
Attached To
Mode
D17837: Don't apply patches or mark patches applied with `bin/storage upgrade --dryrun`
Attached
Detach File
Event Timeline
Log In to Comment