mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-30 00:04:49 -04:00 
			
		
		
		
	Fix pg_upgrade log file cleanup code
Recent pg_upgrade parallel improvements introduced a bug that prevented cleanup of per-database log files.
This commit is contained in:
		
							parent
							
								
									ff64fd49ce
								
							
						
					
					
						commit
						74205266d4
					
				| @ -574,7 +574,7 @@ cleanup(void) | ||||
| 				snprintf(sql_file_name, sizeof(sql_file_name), DB_DUMP_FILE_MASK, old_db->db_oid); | ||||
| 				unlink(sql_file_name); | ||||
| 
 | ||||
| 				snprintf(log_file_name, sizeof(log_file_name), DB_DUMP_FILE_MASK, old_db->db_oid); | ||||
| 				snprintf(log_file_name, sizeof(log_file_name), DB_DUMP_LOG_FILE_MASK, old_db->db_oid); | ||||
| 				unlink(log_file_name); | ||||
| 			} | ||||
| 	} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user