mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
MDEV-30758 mariabackup --help only lists server groups read in configuration
This commit is contained in:
parent
46a7e96339
commit
e240e2749e
1 changed files with 11 additions and 1 deletions
|
@ -1817,6 +1817,12 @@ static void print_version(void)
|
||||||
my_progname, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE);
|
my_progname, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void concatenate_default_groups(std::vector<const char*> &backup_load_groups, const char **default_groups)
|
||||||
|
{
|
||||||
|
for ( ; *default_groups ; default_groups++)
|
||||||
|
backup_load_groups.push_back(*default_groups);
|
||||||
|
}
|
||||||
|
|
||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
puts("Open source backup tool for InnoDB and XtraDB\n\
|
puts("Open source backup tool for InnoDB and XtraDB\n\
|
||||||
|
@ -1837,7 +1843,11 @@ GNU General Public License for more details.\n\
|
||||||
You can download full text of the license on http://www.gnu.org/licenses/gpl-2.0.txt\n");
|
You can download full text of the license on http://www.gnu.org/licenses/gpl-2.0.txt\n");
|
||||||
|
|
||||||
printf("Usage: %s [--defaults-file=#] [--backup | --prepare | --copy-back | --move-back] [OPTIONS]\n",my_progname);
|
printf("Usage: %s [--defaults-file=#] [--backup | --prepare | --copy-back | --move-back] [OPTIONS]\n",my_progname);
|
||||||
print_defaults("my", load_default_groups);
|
std::vector<const char*> backup_load_default_groups;
|
||||||
|
concatenate_default_groups(backup_load_default_groups, backup_default_groups);
|
||||||
|
concatenate_default_groups(backup_load_default_groups, load_default_groups);
|
||||||
|
backup_load_default_groups.push_back(nullptr);
|
||||||
|
print_defaults("my", &backup_load_default_groups[0]);
|
||||||
my_print_help(xb_client_options);
|
my_print_help(xb_client_options);
|
||||||
my_print_help(xb_server_options);
|
my_print_help(xb_server_options);
|
||||||
my_print_variables(xb_server_options);
|
my_print_variables(xb_server_options);
|
||||||
|
|
Loading…
Add table
Reference in a new issue