forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit794e8e3
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 sakeof GetWALAvailability. But it's not needed if in that function weinitialize the segment number to be retreated to the currently beingwritten 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 parent8e6f134 commit794e8e3
1 file changed
+9
-6
lines changedLines changed: 9 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9521 | 9521 |
| |
9522 | 9522 |
| |
9523 | 9523 |
| |
9524 |
| - | |
9525 |
| - | |
9526 | 9524 |
| |
9527 |
| - | |
9528 |
| - | |
| 9525 | + | |
| 9526 | + | |
| 9527 | + | |
9529 | 9528 |
| |
9530 |
| - | |
| 9529 | + | |
| 9530 | + | |
9531 | 9531 |
| |
9532 | 9532 |
| |
9533 | 9533 |
| |
| |||
9546 | 9546 |
| |
9547 | 9547 |
| |
9548 | 9548 |
| |
| 9549 | + | |
| 9550 | + | |
| 9551 | + | |
9549 | 9552 |
| |
9550 | 9553 |
| |
9551 | 9554 |
| |
| |||
9622 | 9625 |
| |
9623 | 9626 |
| |
9624 | 9627 |
| |
9625 |
| - | |
| 9628 | + | |
9626 | 9629 |
| |
9627 | 9630 |
| |
9628 | 9631 |
| |
|
0 commit comments
Comments
(0)