mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 12:30:56 +01:00
Minor, use the same connection throughout applyPatchSQL() -- previously we hit caches, but no longer after D2342.
This commit is contained in:
parent
a10b91a6a9
commit
307ad51404
1 changed files with 3 additions and 1 deletions
|
@ -176,10 +176,12 @@ final class PhabricatorStorageManagementAPI {
|
||||||
$queries = preg_split('/;\s+/', $sql);
|
$queries = preg_split('/;\s+/', $sql);
|
||||||
$queries = array_filter($queries);
|
$queries = array_filter($queries);
|
||||||
|
|
||||||
|
$conn = $this->getConn('meta_data', $select_database = false);
|
||||||
|
|
||||||
foreach ($queries as $query) {
|
foreach ($queries as $query) {
|
||||||
$query = str_replace('{$NAMESPACE}', $this->namespace, $query);
|
$query = str_replace('{$NAMESPACE}', $this->namespace, $query);
|
||||||
queryfx(
|
queryfx(
|
||||||
$this->getConn('meta_data', $select_database = false),
|
$conn,
|
||||||
'%Q',
|
'%Q',
|
||||||
$query);
|
$query);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue