mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue