forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfeed5ee
committed
Fix timeout handling in logical replication worker
The timestamp tracking the last moment a message is received in alogical replication worker was initialized in each loop checking if amessage was received or not, causing wal_receiver_timeout to be ignoredin basically any logical replication deployments. This also broke theping sent to the server when reaching half of wal_receiver_timeout.This simply moves the initialization of the timestamp out of the applyloop to the beginning of LogicalRepApplyLoop().Reported-by: Jehan-Guillaume De RorthaisAuthor: Julien RouhaudDiscussion:https://postgr.es/m/CAOBaU_ZHESFcWva8jLjtZdCLspMj7vqaB2k++rjHLY897ZxbYw@mail.gmail.comBackpatch-through: 101 parent45e4067 commitfeed5ee
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1103 | 1103 |
| |
1104 | 1104 |
| |
1105 | 1105 |
| |
| 1106 | + | |
| 1107 | + | |
1106 | 1108 |
| |
1107 | 1109 |
| |
1108 | 1110 |
| |
| |||
1121 | 1123 |
| |
1122 | 1124 |
| |
1123 | 1125 |
| |
1124 |
| - | |
1125 | 1126 |
| |
1126 | 1127 |
| |
1127 | 1128 |
| |
|
0 commit comments
Comments
(0)