mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-04 00:02:52 -05: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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user