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:
@ -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. */
|
||||
|
Reference in New Issue
Block a user