1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-09 14:45:47 +02:00

Do not skip subdirectories if parent directory contains a file

This commit is contained in:
Artur Zakirov 2017-03-09 14:01:11 +03:00
parent 30681560c0
commit 8bd2248ac4
2 changed files with 1 additions and 8 deletions

6
dir.c
View File

@ -515,13 +515,7 @@ list_data_directories(parray *files, const char *path, bool is_root,
elog(ERROR, "cannot stat file \"%s\": %s", child, strerror(errno)); elog(ERROR, "cannot stat file \"%s\": %s", child, strerror(errno));
if (!S_ISDIR(st.st_mode)) if (!S_ISDIR(st.st_mode))
{
/* Stop reading the directory if we met file */
if (!is_root)
break;
else
continue; continue;
}
/* Check for exclude for the first level of listing */ /* Check for exclude for the first level of listing */
if (is_root && exclude) if (is_root && exclude)

1
show.c
View File

@ -29,7 +29,6 @@ do_show(time_t backup_id)
if (backup_id != 0) if (backup_id != 0)
{ {
pgBackup *backup; pgBackup *backup;
pid_t run_pid;
backup = read_backup(backup_id); backup = read_backup(backup_id);
if (backup == NULL) if (backup == NULL)