mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-20 11:34:51 +02:00
minor bugfix: do not check external directories if their restore is not requested
This commit is contained in:
parent
576ffcee8d
commit
cc66172785
@ -288,7 +288,10 @@ do_restore_or_validate(time_t target_backup_id, pgRecoveryTarget *rt,
|
||||
if (is_restore)
|
||||
{
|
||||
check_tablespace_mapping(dest_backup);
|
||||
check_external_dir_mapping(dest_backup);
|
||||
|
||||
/* no point in checking external directories if their restore is not resquested */
|
||||
if (!skip_external_dirs)
|
||||
check_external_dir_mapping(dest_backup);
|
||||
}
|
||||
|
||||
/* At this point we are sure that parent chain is whole
|
||||
|
Loading…
x
Reference in New Issue
Block a user