- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit20a1dc1
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 parent9be6fcb commit20a1dc1
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 | |
---|---|---|---|
| |||
1794 | 1794 |
| |
1795 | 1795 |
| |
1796 | 1796 |
| |
1797 |
| - | |
1798 |
| - | |
1799 |
| - | |
1800 |
| - | |
1801 |
| - | |
1802 |
| - | |
1803 |
| - | |
1804 |
| - | |
1805 |
| - | |
1806 |
| - | |
1807 |
| - | |
1808 |
| - | |
1809 |
| - | |
1810 |
| - | |
1811 |
| - | |
1812 | 1797 |
| |
1813 | 1798 |
| |
1814 | 1799 |
| |
| |||
2288 | 2273 |
| |
2289 | 2274 |
| |
2290 | 2275 |
| |
2291 |
| - | |
2292 |
| - | |
| 2276 | + | |
2293 | 2277 |
| |
2294 | 2278 |
| |
2295 | 2279 |
| |
| |||
2340 | 2324 |
| |
2341 | 2325 |
| |
2342 | 2326 |
| |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
2343 | 2338 |
| |
2344 | 2339 |
| |
2345 | 2340 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
154 |
| - | |
155 |
| - | |
156 |
| - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
157 | 158 |
| |
158 | 159 |
| |
159 | 160 |
| |
|
0 commit comments
Comments
(0)