8000 [PBCKP-146] Small fix for remote_agent · postgrespro/pg_probackup@80efb85 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80efb85

Browse files
committed
[PBCKP-146] Small fix for remote_agent
1 parent 15b1ad7 commit 80efb85

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/pg_probackup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ bool perm_slot = false;
8888
/* backup options */
8989
bool backup_logs = false;
9090
bool smooth_checkpoint;
91-
char *remote_agent;
91+
bool remote_agent = false;
9292
static char *backup_note = NULL;
9393
/* catchup options */
9494
static char *catchup_source_pgdata = NULL;
@@ -361,6 +361,7 @@ main(int argc, char *argv[])
361361
elog(ERROR, "Version mismatch, pg_probackup binary with version '%s' "
362362
"is launched as an agent for pg_probackup binary with version '%s'",
363363
PROGRAM_VERSION, argv[2]);
364+
remote_agent = true;
364365
fio_communicate(STDIN_FILENO, STDOUT_FILENO);
365366
return 0;
366367
case HELP_CMD:
< 8000 code class="diff-text-cell hunk">

src/pg_probackup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ extern bool perm_slot;
798798
extern bool smooth_checkpoint;
799799

800800
/* remote probackup options */
801-
extern char* remote_agent;
801+
extern bool remote_agent;
802802

803803
extern bool exclusive_backup;
804804

src/utils/configuration.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,6 @@ config_get_opt(int argc, char **argv, ConfigOption cmd_options[],
531531
opt = option_find(c, options);
532532

533533
if (opt
534-
&& !remote_agent
535534
&& opt->allowed < SOURCE_CMD && opt->allowed != SOURCE_CMD_STRICT)
536535
elog(ERROR, "Option %s cannot be specified in command line",
537536
opt->lname);

0 commit comments

Comments
 (0)
0