Commit fd5942c
committed
Use the regular main processing loop also in walsenders.
The regular backend's main loop handles signal handling and error recovery
better than the current WAL sender command loop does. For example, if the
client hangs and a SIGTERM is received before starting streaming, the
walsender will now terminate immediately, rather than hang until the
connection times out.1 parent 1997f34 commit fd5942c
File tree
4 files changed
+109
-232
lines changed- src
- backend
- replication
- tcop
- include/replication
4 files changed
+109
-232
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
375 | 373 | | |
376 | 374 | | |
377 | 375 | | |
378 | 376 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | 377 | | |
387 | 378 | | |
388 | 379 | | |
| |||
403 | 394 | | |
404 | 395 | | |
405 | 396 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | 397 | | |
410 | 398 | | |
411 | 399 | | |
| |||
606 | 594 | | |
607 | 595 | | |
608 | 596 | | |
609 | | - | |
| 597 | + | |
610 | 598 | | |
611 | 599 | | |
612 | 600 | | |
| |||
0 commit comments