1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-5618: Fix after testing

[add] -P to restore help in mcs_backup_restore.sh
[fix] -f argument default value in both backup and restore wrapper commands
[fix] -i argument behaviour and type + default value
[fix] -P argument position and help for both backup and restore wrapper commands
[fix] disable some pylint warning for both backup and restore wrapper files
This commit is contained in:
mariadb-AlanMologorsky
2024-06-25 05:39:26 +03:00
committed by Alan Mologorsky
parent 7ec8f3df9a
commit 7b0a04270f
3 changed files with 47 additions and 33 deletions

View File

@ -12,7 +12,8 @@ from mcs_cluster_tool.helpers import cook_sh_arg
logger = logging.getLogger('mcs_cli')
# pylint: disable=unused-argument
# pylint: disable=unused-argument, too-many-arguments, too-many-locals
# pylint: disable=invalid-name, line-too-long
@handle_output
@ -143,17 +144,6 @@ def restore(
)
)
] = '',
P: Annotated[
int,
typer.Option(
'-P', '--parallel',
help=(
'Determines if columnstore data directories will have '
'multiple rsync running at the same time for different '
'subfolders to parallelize writes.'
)
)
] = 4,
ha: Annotated[
bool,
typer.Option(
@ -180,9 +170,10 @@ def restore(
str,
typer.Option(
'-f', '--config-file',
help='Path to backup configuration file to load variables from.'
help='Path to backup configuration file to load variables from.',
show_default=False
)
] = '.cs-backup-config',
] = '',
smdb: Annotated[
bool,
typer.Option(
@ -223,9 +214,20 @@ def restore(
help=(
'Hint that the backup is compressed in X format. '
'Options: [ pigz ].'
)
),
show_default=False
)
] = '',
P: Annotated[
int,
typer.Option(
'-P', '--parallel',
help=(
'Determines number of decompression and mdbstream threads. '
'Ignored if "-c/--compress" argument not set.'
)
)
] = 4,
q: Annotated[
bool,
typer.Option(