1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 12:00:55 +01:00

Use --single-transaction in bin/storage dump

Summary: See <https://github.com/phacility/phabricator/issues/665>. From reading documentation, this seems dramatically better for InnoDB tables than the default behavior.

Test Plan: Ran `bin/storage dump`, got a reasonable-looking dump.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D10606
This commit is contained in:
epriestley 2014-09-29 08:10:48 -07:00
parent 93681fcdbc
commit 644ca4c3a3

View file

@ -43,10 +43,8 @@ final class PhabricatorStorageManagementDumpWorkflow
: '';
return phutil_passthru(
'mysqldump --default-character-set=utf8 '.
'mysqldump --single-transaction --default-character-set=utf8 '.
'-u %s %C -h %s %C --databases %Ls',
$api->getUser(),
$flag_password,
$host,