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

Commit80efb85

Browse files
committed
[PBCKP-146] Small fix for remote_agent
1 parent15b1ad7 commit80efb85

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
boolbackup_logs= false;
9090
boolsmooth_checkpoint;
91-
char*remote_agent;
91+
boolremote_agent= false;
9292
staticchar*backup_note=NULL;
9393
/* catchup options */
9494
staticchar*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
return0;
366367
caseHELP_CMD:

‎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
externboolsmooth_checkpoint;
799799

800800
/* remote probackup options */
801-
externchar*remote_agent;
801+
externboolremote_agent;
802802

803803
externboolexclusive_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)

[8]ページ先頭

©2009-2025 Movatter.jp