forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit15cac3a
committed
Set ReorderBufferTXN->final_lsn more eagerly
... specifically, set it incrementally as each individual change isspilled down to disk. This way, it is set correctly when thetransaction disappears without trace, ie. without leaving an XACT_ABORTwal record. (This happens when the server crashes midway through atransaction.)Failing to have final_lsn prevents ReorderBufferRestoreCleanup() fromworking, since it needs the final_lsn in order to know the endpoint ofits iteration through spilled files.Commitdf9f682 already tried to fix the problem, but it didn't setthe final_lsn in all cases. Revert that, since it's no longer needed.Author: Vignesh CReviewed-by: Amit Kapila, Dilip KumarDiscussion:https://postgr.es/m/CALDaNm2CLk+K9JDwjYST0sPbGg5AQdvhUt0jbKyX_HdAE0jk3A@mail.gmail.com1 parent543852f commit15cac3a
File tree
2 files changed
+16
-20
lines changed- src
- backend/replication/logical
- include/replication
2 files changed
+16
-20
lines changedLines changed: 12 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1974 | 1974 |
| |
1975 | 1975 |
| |
1976 | 1976 |
| |
1977 |
| - | |
1978 |
| - | |
1979 |
| - | |
1980 |
| - | |
1981 |
| - | |
1982 |
| - | |
1983 |
| - | |
1984 |
| - | |
1985 |
| - | |
1986 |
| - | |
1987 |
| - | |
1988 |
| - | |
1989 |
| - | |
1990 |
| - | |
1991 |
| - | |
1992 | 1977 |
| |
1993 | 1978 |
| |
1994 | 1979 |
| |
| |||
2623 | 2608 |
| |
2624 | 2609 |
| |
2625 | 2610 |
| |
2626 |
| - | |
2627 |
| - | |
| 2611 | + | |
2628 | 2612 |
| |
2629 | 2613 |
| |
2630 | 2614 |
| |
| |||
2697 | 2681 |
| |
2698 | 2682 |
| |
2699 | 2683 |
| |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
2700 | 2695 |
| |
2701 | 2696 |
| |
2702 | 2697 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
210 |
| - | |
211 |
| - | |
212 |
| - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
213 | 214 |
| |
214 | 215 |
| |
215 | 216 |
| |
|
0 commit comments
Comments
(0)