Commit b5b4c0f
committed
Fix uninitialized value in segno calculation
Remove previous hack in KeepLogSeg that added a case to deal with a
(badly represented) invalid segment number. This was added for the sake
of GetWALAvailability. But it's not needed if in that function we
initialize the segment number to be retreated to the currently being
written segment, so do that instead.
Per valgrind-running buildfarm member skink, and some sparc64 animals.
Discussion: https://postgr.es/m/1724648.1594230917@sss.pgh.pa.us1 parent 25fe5ac commit b5b4c0f
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9523 | 9523 | | |
9524 | 9524 | | |
9525 | 9525 | | |
9526 | | - | |
9527 | | - | |
9528 | 9526 | | |
9529 | | - | |
9530 | | - | |
| 9527 | + | |
| 9528 | + | |
| 9529 | + | |
9531 | 9530 | | |
9532 | | - | |
| 9531 | + | |
| 9532 | + | |
9533 | 9533 | | |
9534 | 9534 | | |
9535 | 9535 | | |
| |||
9548 | 9548 | | |
9549 | 9549 | | |
9550 | 9550 | | |
| 9551 | + | |
| 9552 | + | |
| 9553 | + | |
9551 | 9554 | | |
9552 | 9555 | | |
9553 | 9556 | | |
| |||
9624 | 9627 | | |
9625 | 9628 | | |
9626 | 9629 | | |
9627 | | - | |
| 9630 | + | |
9628 | 9631 | | |
9629 | 9632 | | |
9630 | 9633 | | |
| |||
0 commit comments