Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0084441

Browse files
author
Arthur Zakirov
committed
Do not check argc for SHOW_CONFIG and SET_CONFIG
1 parent020d6dd commit0084441

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

‎src/configure.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ readBackupCatalogConfigFile(void)
198198
{'f',36,"compress-algorithm",opt_compress_alg,SOURCE_CMDLINE },
199199
{'u',37,"compress-level",&(config->compress_level),SOURCE_CMDLINE },
200200
/* logging options */
201-
{'i',0,"log",&(config->log_to_file),SOURCE_CMDLINE },
201+
{'b',0,"log",&(config->log_to_file),SOURCE_CMDLINE },
202202
{'f',0,"log-level",opt_log_level,SOURCE_CMDLINE },
203203
{'s',0,"log-filename",&(config->log_filename),SOURCE_CMDLINE },
204204
{'s',0,"error-log-filename",&(config->error_log_filename),SOURCE_CMDLINE },

‎src/pg_probackup.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,12 +403,8 @@ main(int argc, char *argv[])
403403
else
404404
returndo_delete(current.backup_id);
405405
caseSHOW_CONFIG:
406-
if (argc>6)
407-
elog(ERROR,"show-config command doesn't accept any options except -B and --instance");
408406
returndo_configure(true);
409407
caseSET_CONFIG:
410-
if (argc==6)
411-
elog(ERROR,"set-config command requires at least one option");
412408
returndo_configure(false);
413409
}
414410

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp