Commit 8d20831
pg_upgrade: Fix core dump in report_progress()
The report_progress function may take a NULL argument
for cluster, but was not checking it before trying to
print cluster->major_version_str, resulting in a core
dump.
Add a check before fprintf call, which also resolves a FIXME.
Also use --progress flag in pg_upgrade regression test.
Authored-by: Brent Doil <[email protected]>1 parent 5c173c6 commit 8d20831
2 files changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 97 | + | |
| 98 | + | |
101 | 99 | | |
102 | | - | |
103 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments