Commit ba08155b authored by Bruce Momjian's avatar Bruce Momjian

pg_upgrade: use pg_usleep(); remove Windows workaround

parent f9c6d72c
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment