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

Commit55b5656

Browse files
committed
PGPRO-2065: move backup_mode check to pg_probackup.c
1 parent252176b commit55b5656

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎src/backup.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,10 +1231,6 @@ do_backup(time_t start_time)
12311231
pgdata_basic_setup();
12321232

12331233
/* below perform checks specific for backup command */
1234-
if (current.backup_mode==BACKUP_MODE_INVALID)
1235-
elog(ERROR,"required parameter not specified: BACKUP_MODE "
1236-
"(-b, --backup-mode)");
1237-
12381234
#ifPG_VERSION_NUM >=110000
12391235
if (!RetrieveWalSegSize(backup_conn))
12401236
elog(ERROR,"Failed to retreive wal_segment_size");

‎src/pg_probackup.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,11 @@ main(int argc, char *argv[])
531531
PROGRAM_VERSION,base36enc(start_time),backup_mode,instance_name,
532532
stream_wal ?"true" :"false",is_remote_backup ?"true" :"false");
533533

534+
/* sanity */
535+
if (current.backup_mode==BACKUP_MODE_INVALID)
536+
elog(ERROR,"required parameter not specified: BACKUP_MODE "
537+
"(-b, --backup-mode)");
538+
534539
returndo_backup(start_time);
535540
}
536541
caseRESTORE_CMD:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp