forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbd5a9a5
committed
pg_upgrade: Report full disk better
Previously, pg_upgrade would abort copy_file() on a short write withoutsetting errno, which the caller would report as an error with themessage "Success". We assume ENOSPC in that case, as we do elsewhere inthe code. Also set errno in some other error cases in copy_file() toavoid bogus "Success" error messages.This was broken in6b711cf, so 9.2 andbefore are OK.1 parent0dbf9a6 commitbd5a9a5
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
| 139 | + | |
| 140 | + | |
139 | 141 |
| |
| 142 | + | |
140 | 143 |
| |
141 | 144 |
| |
142 | 145 |
| |
143 | 146 |
| |
144 | 147 |
| |
145 | 148 |
| |
| 149 | + | |
| 150 | + | |
146 | 151 |
| |
147 | 152 |
| |
148 | 153 |
| |
| 154 | + | |
149 | 155 |
| |
150 | 156 |
| |
151 | 157 |
| |
| |||
170 | 176 |
| |
171 | 177 |
| |
172 | 178 |
| |
| 179 | + | |
| 180 | + | |
| 181 | + | |
173 | 182 |
| |
174 | 183 |
| |
175 | 184 |
| |
|
0 commit comments
Comments
(0)