Homec4science

Give bin/storage some replica-aware options

Authored by epriestley <git@epriestley.com> on Apr 14 2016, 20:34.

Description

Give bin/storage some replica-aware options

Summary:
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).

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10758

Differential Revision: https://secure.phabricator.com/D15714

Details

Committed
epriestley <git@epriestley.com>Apr 14 2016, 22:23
Pushed
aubortJan 31 2017, 17:16
Parents
rPH1b2b84ce1f3d: Use monospaced font in Passphrase "Reveal Secret" dialog
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH5a0b7398cabd: Give bin/storage some replica-aware options (authored by epriestley <git@epriestley.com>).Apr 14 2016, 22:23