Skip to content

Commit a430d0f

Browse files
author
vrana
committed
Use 'w' connection in bin/storage
Test Plan: Built a DB provider using readonly connection for 'r' mode. Then: $ arc unit Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3484
1 parent 2d66798 commit a430d0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/sql/manage_storage.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
);
3636
$args->parseStandardArguments();
3737

38-
$conf = PhabricatorEnv::newObjectFromConfig('mysql.configuration-provider');
38+
$conf = PhabricatorEnv::newObjectFromConfig(
39+
'mysql.configuration-provider',
40+
array($dao = null, 'w'));
3941

4042
$default_user = $conf->getUser();
4143
$default_host = $conf->getHost();

0 commit comments

Comments
 (0)