pg_upgrade: use pg_usleep(); remove Windows workaround

This commit is contained in:
Bruce Momjian 2014-03-26 10:22:16 -04:00
parent f9c6d72cbf
commit ba08155bd5
2 changed files with 1 additions and 2 deletions

View File

@ -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");
}
}

View File

@ -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"