- Notifications
You must be signed in to change notification settings - Fork5
Commit2e1b4ad
committed
Remember asking for feedback during walsender shutdown.
Since5a991ef we're explicitly asking for feedback from the receivingside when shutting down walsender, if there's not yet replicateddata.Unfortunately we didn't remember (i.e. set waiting_for_ping_response totrue) having asked for feedback, leading to scenarios in which replieswere requested at a high frequency.I can't reproduce this problem on my laptop, I think that's because theproblem requires a significant TCP window to manifest due to the!pq_is_send_pending() condition. But since this clearly is a bug, let'sfix it. There's quite possibly more wrong than just this though.While fiddling with WalSndDone(), I rewrote a hard to understand commentabout looking at the flush vs. the write position.Reported-By: Nick Cleaton, Magnus HaganderAuthor: Nick CleatonDiscussion: CAFgz3kus=rC_avEgBV=+hRK5HYJ8vXskJRh8yEAbahJGTzF2VQ@mail.gmail.com CABUevExsjROqDcD0A2rnJ6HK6FuKGyewJr3PL12pw85BHFGS2Q@mail.gmail.comBackpatch: 9.4, were5a991ef introduced the use of feedback messages during shutdown.1 parent94a1653 commit2e1b4ad
1 file changed
+8
-4
lines changedLines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2486 | 2486 |
| |
2487 | 2487 |
| |
2488 | 2488 |
| |
2489 |
| - | |
2490 |
| - | |
2491 |
| - | |
2492 |
| - | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
2493 | 2493 |
| |
2494 | 2494 |
| |
2495 | 2495 |
| |
| 2496 | + | |
2496 | 2497 |
| |
2497 | 2498 |
| |
2498 | 2499 |
| |
| |||
2503 | 2504 |
| |
2504 | 2505 |
| |
2505 | 2506 |
| |
| 2507 | + | |
2506 | 2508 |
| |
| 2509 | + | |
| 2510 | + | |
2507 | 2511 |
| |
2508 | 2512 |
| |
2509 | 2513 |
| |
|
0 commit comments
Comments
(0)