Skip to content

Commit 46768fa

Browse files
committed
Change parse cmd options.
1 parent 2cdb902 commit 46768fa

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pg_probackup.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,28 @@ static void opt_backup_mode(pgut_option *opt, const char *arg);
5252
static pgut_option options[] =
5353
{
5454
/* directory options */
55-
{ 's', 'D', "pgdata", &pgdata, SOURCE_ENV },
56-
{ 's', 'B', "backup-path", &backup_path, SOURCE_ENV },
55+
{ 's', 'D', "pgdata", &pgdata, SOURCE_ENV },
56+
{ 's', 'B', "backup-path", &backup_path, SOURCE_ENV },
5757
/* common options */
58-
/* { 'b', 'c', "check", &check },*/
59-
{ 'i', 'j', "threads", &num_threads },
60-
{ 'b', 8, "stream", &stream_wal },
61-
{ 'b', 11, "progress", &progress },
58+
/* { 'b', 'c', "check", &check },*/
59+
{ 'i', 'j', "threads", &num_threads },
60+
{ 'b', 8, "stream", &stream_wal },
61+
{ 'b', 11, "progress", &progress },
6262
/* backup options */
6363
{ 'b', 10, "backup-pg-log", &backup_logs },
6464
{ 'f', 'b', "backup-mode", opt_backup_mode, SOURCE_ENV },
6565
{ 'b', 'C', "smooth-checkpoint", &smooth_checkpoint, SOURCE_ENV },
66-
{ 's', 'S', "slot", &replication_slot, SOURCE_ENV },
66+
{ 's', 'S', "slot", &replication_slot, SOURCE_CMDLINE },
6767
/* options with only long name (keep-xxx) */
6868
/* { 'i', 1, "keep-data-generations", &keep_data_generations, SOURCE_ENV },
6969
{ 'i', 2, "keep-data-days", &keep_data_days, SOURCE_ENV },*/
7070
/* restore options */
71-
{ 's', 3, "time", &target_time, SOURCE_ENV },
72-
{ 's', 4, "xid", &target_xid, SOURCE_ENV },
73-
{ 's', 5, "inclusive", &target_inclusive, SOURCE_ENV },
74-
{ 'u', 6, "timeline", &target_tli, SOURCE_ENV },
71+
{ 's', 3, "time", &target_time, SOURCE_CMDLINE },
72+
{ 's', 4, "xid", &target_xid, SOURCE_CMDLINE },
73+
{ 's', 5, "inclusive", &target_inclusive, SOURCE_CMDLINE },
74+
{ 'u', 6, "timeline", &target_tli, SOURCE_CMDLINE },
7575
/* delete options */
76-
{ 'b', 12, "wal", &delete_wal },
76+
{ 'b', 12, "wal", &delete_wal },
7777
{ 0 }
7878
};
7979

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy