1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Remove scandir() requirement in pg_upgrade; instead just use readdir()

--- we were not using the scandir pattern filtering anyway.  This also
removes the scandir requirement in configure.
This commit is contained in:
Bruce Momjian
2011-11-17 21:59:04 -05:00
parent fc6d1006bd
commit 7012b5edb7
5 changed files with 31 additions and 85 deletions

View File

@ -160,7 +160,7 @@ transfer_single_new_db(pageCnvCtx *pageConverter,
}
snprintf(old_dir, sizeof(old_dir), "%s", maps[mapnum].old_dir);
numFiles = pg_scandir(old_dir, &namelist, NULL);
numFiles = load_directory(old_dir, &namelist);
}
/* Copying files might take some time, so give feedback. */