forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1370030
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 parentc74f88c commit1370030
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10037 | 10037 |
| |
10038 | 10038 |
| |
10039 | 10039 |
| |
10040 |
| - | |
| 10040 | + | |
10041 | 10041 |
| |
10042 | 10042 |
| |
10043 | 10043 |
| |
|
0 commit comments
Comments
(0)