mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
pg_upgrade: use pg_usleep(); remove Windows workaround
This commit is contained in:
parent
f9c6d72cbf
commit
ba08155bd5
@ -102,7 +102,7 @@ static DWORD mainThreadId = 0;
|
||||
|
||||
for (iter = 0; iter < 4 && log == NULL; iter++)
|
||||
{
|
||||
sleep(1);
|
||||
pg_usleep(1000000); /* 1 sec */
|
||||
log = fopen(log_file, "a");
|
||||
}
|
||||
}
|
||||
|
@ -83,7 +83,6 @@ extern char *output_files[];
|
||||
#define pg_copy_file CopyFile
|
||||
#define pg_mv_file pgrename
|
||||
#define pg_link_file win32_pghardlink
|
||||
#define sleep(x) Sleep(x * 1000)
|
||||
#define PATH_SEPARATOR '\\'
|
||||
#define RM_CMD "DEL /q"
|
||||
#define RMDIR_CMD "RMDIR /s/q"
|
||||
|
Loading…
Reference in New Issue
Block a user