forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd1ffcc7

Amit Kapila
Fix an assert in CheckPointReplicationSlots().
Commite0b2eed assumed that the confirmed_flush LSN can't go backward.However, it is possible that confirmed_flush LSN can go backwardtemporarily when the client acknowledges a prior value of flush location.This can happen when the client (subscriber in this case) acknowledges anLSN it doesn't have to do anything for (say for DDLs) and thus didn'tstore persistently. After restart, the client sends the prior value offlush LSN which it had stored persistently and the server updates theconfirmed_flush LSN with that value.The fix is to remove the assumption and not allow the prior value ofconfirmed_flush LSN to be flushed to the disk.Author: Vignesh CReviewed-by: Amit Kapila, Shlok KyalDiscussion:https://postgr.es/m/CALDaNm3hgow2+oEov5jBk4iYP5eQrUCF1yZtW7+dV3J__p4KLQ@mail.gmail.com1 parent3470391 commitd1ffcc7
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1874 | 1874 |
| |
1875 | 1875 |
| |
1876 | 1876 |
| |
1877 |
| - | |
1878 |
| - | |
1879 | 1877 |
| |
1880 |
| - | |
| 1878 | + | |
1881 | 1879 |
| |
1882 | 1880 |
| |
1883 | 1881 |
| |
|
0 commit comments
Comments
(0)