forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb39c527

Amit Kapila
Don't advance origin during apply failure.
We advance origin progress during abort on successful streaming andapplication of ROLLBACK in parallel streaming mode. But the originshouldn't be advanced during an error or unsuccessful apply due toshutdown. Otherwise, it will result in a transaction loss as such atransaction won't be sent again by the server.Reported-by: Hou ZhijieAuthor: Hayato Kuroda and Shveta MalikReviewed-by: Amit KapilaBackpatch-through: 16Discussion:https://postgr.es/m/TYAPR01MB5692FAC23BE40C69DA8ED4AFF5B92@TYAPR01MB5692.jpnprd01.prod.outlook.com1 parent25642b2 commitb39c527
File tree
4 files changed
+66
-1
lines changed- src
- backend
- replication/logical
- utils/error
- include/utils
- test/subscription/t
4 files changed
+66
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4404 | 4404 |
| |
4405 | 4405 |
| |
4406 | 4406 |
| |
| 4407 | + | |
| 4408 | + | |
| 4409 | + | |
| 4410 | + | |
| 4411 | + | |
| 4412 | + | |
| 4413 | + | |
| 4414 | + | |
| 4415 | + | |
| 4416 | + | |
| 4417 | + | |
4407 | 4418 |
| |
4408 | 4419 |
| |
4409 | 4420 |
| |
| |||
4553 | 4564 |
| |
4554 | 4565 |
| |
4555 | 4566 |
| |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
| 4574 | + | |
| 4575 | + | |
| 4576 | + | |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
4556 | 4580 |
| |
4557 | 4581 |
| |
4558 | 4582 |
| |
| |||
4916 | 4940 |
| |
4917 | 4941 |
| |
4918 | 4942 |
| |
| 4943 | + | |
4919 | 4944 |
| |
4920 | 4945 |
| |
4921 | 4946 |
| |
4922 | 4947 |
| |
4923 | 4948 |
| |
4924 | 4949 |
| |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
| 4953 | + | |
| 4954 | + | |
| 4955 | + | |
| 4956 | + | |
| 4957 | + | |
| 4958 | + | |
| 4959 | + | |
4925 | 4960 |
| |
4926 | 4961 |
| |
4927 | 4962 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1571 | 1571 |
| |
1572 | 1572 |
| |
1573 | 1573 |
| |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
1574 | 1591 |
| |
1575 | 1592 |
| |
1576 | 1593 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
| 229 | + | |
229 | 230 |
| |
230 | 231 |
| |
231 | 232 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 |
| |
71 | 74 |
| |
72 | 75 |
| |
73 | 76 |
| |
74 | 77 |
| |
75 | 78 |
| |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
76 | 88 |
| |
77 | 89 |
| |
78 | 90 |
| |
|
0 commit comments
Comments
(0)