forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbe40dd6
committed
Prevent underflow in KeepLogSeg().
The call to XLogGetReplicationSlotMinimumLSN() might return agreater LSN than the one given to the function. Subsequent segmentnumber calculations might then underflow, which could result inunexpected behavior when removing or recyling WAL files. This wasintroduced with max_slot_wal_keep_size inc655077. To fix, skipthe block of code for replication slots if the LSN is greater.Reported-by: Xu XingwangAuthor: Kyotaro HoriguchiReviewed-by: Junwang ZhaoDiscussion:https://postgr.es/m/17903-4288d439dee856c6%40postgresql.orgBackpatch-through: 131 parentde2dfa0 commitbe40dd6
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9836 | 9836 |
| |
9837 | 9837 |
| |
9838 | 9838 |
| |
9839 |
| - | |
| 9839 | + | |
9840 | 9840 |
| |
9841 | 9841 |
| |
9842 | 9842 |
| |
|
0 commit comments
Comments
(0)