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

Commitf8e9af6

Browse files
committed
Fix remote restore from backup
1 parent8f980b6 commitf8e9af6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/pg_probackup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static ConfigOption cmd_options[] =
167167
/* show options */
168168
{'f',153,"format",opt_show_format,SOURCE_CMD_STRICT },
169169
/* remote options */
170-
{'s',155,"agent",&remote_agent,SOURCE_CMD_STRICT, },
170+
{'s',155,"agent",&remote_agent,SOURCE_CMD_STRICT },
171171
{0 }
172172
};
173173

‎src/restore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ restore_backup(pgBackup *backup)
457457
*/
458458
pgBackupGetPath(backup,database_path,lengthof(database_path),DATABASE_DIR);
459459
pgBackupGetPath(backup,list_path,lengthof(list_path),DATABASE_FILE_LIST);
460-
files=dir_read_file_list(database_path,list_path,FIO_DB_HOST);
460+
files=dir_read_file_list(database_path,list_path,FIO_BACKUP_HOST);
461461

462462
threads= (pthread_t*)palloc(sizeof(pthread_t)*num_threads);
463463
threads_args= (restore_files_arg*)palloc(sizeof(restore_files_arg)*num_threads);
@@ -523,7 +523,7 @@ remove_deleted_files(pgBackup *backup)
523523

524524
pgBackupGetPath(backup,filelist_path,lengthof(filelist_path),DATABASE_FILE_LIST);
525525
/* Read backup's filelist using target database path as base path */
526-
files=dir_read_file_list(instance_config.pgdata,filelist_path,FIO_DB_HOST);
526+
files=dir_read_file_list(instance_config.pgdata,filelist_path,FIO_BACKUP_HOST);
527527
parray_qsort(files,pgFileComparePathDesc);
528528

529529
/* Get list of files actually existing in target database */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp