Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1665239: -h shortcut seems to be not working for xtrabackup #314

Merged
merged 1 commit into from
Feb 16, 2017

Conversation

gl-sergei
Copy link
Contributor

xtrabackup -h localhost

aborted with error message

xtrabackup: Error: unknown argument: 'localhost'

Here is why. -h is a shortcut for --datadir, which is server option
and 'localhost' was recognized as it's argument and handled
correctly.

Then xtrabackup was trying to pick client options and 'localhost'
option was marked as not handled.

Then xtrabackup checked options which were not handled during
previous step and complained that 'localhost' is incorrect.

Fix is to abort only in case when option was not recognized as client
option neither as server option.

    xtrabackup -h localhost

aborted with error message

    xtrabackup: Error: unknown argument: 'localhost'

Here is why. -h is a shortcut for --datadir, which is server option
and 'localhost' was recognized as it's argument and handled
correctly.

Then xtrabackup was trying to pick client options and 'localhost'
option was marked as not handled.

Then xtrabackup checked options which were not handled during
previous step and complained that 'localhost' is incorrect.

Fix is to abort only in case when option was not recognized as client
option neither as server option.
@gl-sergei
Copy link
Contributor Author

@gl-sergei gl-sergei merged commit ac08a60 into percona:2.3 Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant