Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7420526

Browse files
committed
Fix pg_upgrade log file cleanup code
Recent pg_upgrade parallel improvements introduced a bug that prevented cleanup of per-database log files.
1 parent ff64fd4 commit 7420526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/pg_upgrade.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ cleanup(void)
574574
snprintf(sql_file_name, sizeof(sql_file_name), DB_DUMP_FILE_MASK, old_db->db_oid);
575575
unlink(sql_file_name);
576576

577-
snprintf(log_file_name, sizeof(log_file_name), DB_DUMP_FILE_MASK, old_db->db_oid);
577+
snprintf(log_file_name, sizeof(log_file_name), DB_DUMP_LOG_FILE_MASK, old_db->db_oid);
578578
unlink(log_file_name);
579579
}
580580
}

0 commit comments

Comments
 (0)