Commit 8b255755 authored by Alvaro Herrera's avatar Alvaro Herrera

Make pg_upgrade compile again

parent eff027c4
...@@ -147,8 +147,7 @@ get_db_and_rel_infos(ClusterInfo *cluster) ...@@ -147,8 +147,7 @@ get_db_and_rel_infos(ClusterInfo *cluster)
{ {
int dbnum; int dbnum;
if (cluster->dbarr) free_db_and_rel_infos(&cluster->dbarr);
free_db_and_rel_infos(cluster->dbarr);
get_db_infos(cluster); get_db_infos(cluster);
......
...@@ -64,6 +64,8 @@ main(int argc, char **argv) ...@@ -64,6 +64,8 @@ main(int argc, char **argv)
bool live_check = false; bool live_check = false;
parseCommandLine(argc, argv); parseCommandLine(argc, argv);
old_cluster.dbarr.ndbs = 0;
new_cluster.dbarr.ndbs = 0;
output_check_banner(&live_check); output_check_banner(&live_check);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment