mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-09 08:10:09 +08:00
Make pg_upgrade compile again
This commit is contained in:
parent
eff027c432
commit
8b2557553c
@ -147,8 +147,7 @@ get_db_and_rel_infos(ClusterInfo *cluster)
|
||||
{
|
||||
int dbnum;
|
||||
|
||||
if (cluster->dbarr)
|
||||
free_db_and_rel_infos(cluster->dbarr);
|
||||
free_db_and_rel_infos(&cluster->dbarr);
|
||||
|
||||
get_db_infos(cluster);
|
||||
|
||||
|
@ -64,6 +64,8 @@ main(int argc, char **argv)
|
||||
bool live_check = false;
|
||||
|
||||
parseCommandLine(argc, argv);
|
||||
old_cluster.dbarr.ndbs = 0;
|
||||
new_cluster.dbarr.ndbs = 0;
|
||||
|
||||
output_check_banner(&live_check);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user