Page MenuHomePhabricator

Give bin/storage some replica-aware options

Authored by epriestley on Apr 14 2016, 6:44 PM.
Referenced Files
Unknown Object (File)
Tue, Aug 9, 10:44 AM
Unknown Object (File)
Sun, Aug 7, 5:32 AM
Unknown Object (File)
Tue, Aug 2, 12:10 PM
Unknown Object (File)
Jul 7 2022, 10:38 AM
Unknown Object (File)
Jul 3 2022, 9:02 PM
Unknown Object (File)
Jun 16 2022, 8:36 PM
Unknown Object (File)
Jun 13 2022, 2:31 PM
Unknown Object (File)
Jun 11 2022, 12:27 AM



Fixes T10758.

  • Adds a "--host" flag. If you specify this, we read your cluster config. This lets you dump from a replica.
  • Adds a "--for-replica" flag to storage dump. This makes mysqldump include a CHANGE MASTER ... statement in the output, which is useful when setting up a replica for the first time.
Test Plan
  • Dumped master and replica cluster databases.
  • Dumped non-cluster databases.
  • Ran various other commands (help, status, etc).

Diff Detail

rP Phabricator
Lint Not Applicable
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Give bin/storage some replica-aware options.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Apr 14 2016, 8:23 PM
This revision was automatically updated to reflect the committed changes.