- Notifications
You must be signed in to change notification settings - Fork5
Commit6479df1
committed
In Windows pg_dump, ensure idle workers will shut down during error exit.
The Windows coding of ShutdownWorkersHard() thought that setting termEventwas sufficient to make workers exit after an error. But that only helpsif a worker is busy and passes through checkAborting(). An idle workerwill just sit, resulting in pg_dump failing to exit until the user gives upand hits control-C. We should close the write end of the command pipeso that idle workers will see socket EOF and exit, as the Unix coding wasalready doing.Back-patch to 9.3 where parallel pg_dump was introduced.Kyotaro Horiguchi1 parentb2355a2 commit6479df1
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 302 | + | |
306 | 303 | | |
307 | 304 | | |
308 | 305 | | |
309 | 306 | | |
310 | | - | |
311 | 307 | | |
312 | 308 | | |
313 | 309 | | |
314 | | - | |
315 | | - | |
| 310 | + | |
| 311 | + | |
316 | 312 | | |
317 | 313 | | |
318 | 314 | | |
319 | 315 | | |
| 316 | + | |
| 317 | + | |
320 | 318 | | |
321 | 319 | | |
322 | 320 | | |
323 | | - | |
| 321 | + | |
324 | 322 | | |
325 | 323 | | |
326 | 324 | | |
| |||
0 commit comments
Comments
(0)