forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1d04a59
committed
Make walsender always initialize the buffers.
Walsender uses the local buffers for each outgoing and incoming message.Previously when creating replication slot, walsender forgot to initializeone of them and which can cause the segmentation fault error. To fix thisissue, this commit changes walsender so that it always initialize thembefore it executes the requested replication command.Back-patch to 9.4 where replication slot was introduced.Problem report and initial patch by Stas Kelvich, modified by me.Report:https://www.postgresql.org/message-id/A1E9CB90-1FAC-4CAD-8DBA-9AA62A6E97C5@postgrespro.ru1 parentd365370 commit1d04a59
1 file changed
+8
-10
lines changedLines changed: 8 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
773 | 773 |
| |
774 | 774 |
| |
775 | 775 |
| |
776 |
| - | |
777 |
| - | |
778 | 776 |
| |
779 | 777 |
| |
780 | 778 |
| |
| |||
1258 | 1256 |
| |
1259 | 1257 |
| |
1260 | 1258 |
| |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
1261 | 1267 |
| |
1262 | 1268 |
| |
1263 | 1269 |
| |
| |||
1736 | 1742 |
| |
1737 | 1743 |
| |
1738 | 1744 |
| |
1739 |
| - | |
1740 |
| - | |
1741 |
| - | |
1742 |
| - | |
1743 |
| - | |
1744 |
| - | |
1745 |
| - | |
1746 |
| - | |
1747 | 1745 |
| |
1748 | 1746 |
| |
1749 | 1747 |
| |
|
0 commit comments
Comments
(0)