Commit 931b6db
committed
Fix corner-case bug in tracking of latest removed WAL segment during
streaming replication. We used log/seg 0/0 to indicate that no WAL segments
have been removed since startup, but 0/0 is a valid value for the very first
WAL segment after initdb. To make that disambiguous, store
(latest removed WAL segment + 1) in the global variable.
Per report from Matt Chesler, also reproduced by Greg Smith.1 parent 76b12e0 commit 931b6db
2 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
3218 | 3218 | | |
3219 | 3219 | | |
3220 | 3220 | | |
3221 | | - | |
3222 | | - | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
3223 | 3225 | | |
3224 | 3226 | | |
3225 | 3227 | | |
| |||
3247 | 3249 | | |
3248 | 3250 | | |
3249 | 3251 | | |
| 3252 | + | |
3250 | 3253 | | |
3251 | 3254 | | |
3252 | 3255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
657 | | - | |
| 657 | + | |
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
| |||
0 commit comments