forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3b4b541
committed
Persist slot invalidation correctly
We failed to save slot to disk after invalidating it, so the state waslost in case of server restart or crash. Fix by marking it dirty andflushing.Also, if the slot is known invalidated we don't need to reason about theLSN at all -- it's known invalidated. Only test the LSN if the slot isknown not invalidated.Author: Fujii Masao <masao.fujii@oss.nttdata.com>Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>Discussion:https://postgr.es/m/17a69cfe-f1c1-a416-ee25-ae15427c69eb@oss.nttdata.com1 parent1f601b1 commit3b4b541
2 files changed
+13
-12
lines changedLines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1157 | 1157 |
| |
1158 | 1158 |
| |
1159 | 1159 |
| |
| 1160 | + | |
1160 | 1161 |
| |
1161 | 1162 |
| |
1162 | 1163 |
| |
| |||
1214 | 1215 |
| |
1215 | 1216 |
| |
1216 | 1217 |
| |
1217 |
| - | |
1218 |
| - | |
1219 | 1218 |
| |
1220 |
| - | |
1221 | 1219 |
| |
1222 | 1220 |
| |
1223 | 1221 |
| |
| |||
1229 | 1227 |
| |
1230 | 1228 |
| |
1231 | 1229 |
| |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
1232 | 1234 |
| |
1233 | 1235 |
| |
1234 | 1236 |
| |
1235 |
| - | |
1236 | 1237 |
| |
1237 | 1238 |
| |
1238 | 1239 |
| |
|
Lines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
283 | 283 |
| |
284 | 284 |
| |
285 | 285 |
| |
286 |
| - | |
287 | 286 |
| |
288 | 287 |
| |
289 | 288 |
| |
| |||
344 | 343 |
| |
345 | 344 |
| |
346 | 345 |
| |
347 |
| - | |
348 |
| - | |
349 |
| - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
350 | 349 |
| |
351 |
| - | |
352 |
| - | |
353 |
| - | |
354 |
| - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
355 | 355 |
| |
356 | 356 |
| |
357 | 357 |
| |
|
0 commit comments
Comments
(0)