forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc7371c4
committed
Prevent the already-archived WAL file from being archived again.
Previously the archive recovery always created .ready file forthe last WAL file of the old timeline at the end of recovery even whenit's restored from the archive and has .done file. That is, there wasthe case where the WAL file had both .ready and .done files.This caused the already-archived WAL file to be archived again.This commit prevents the archive recovery from creating .ready filefor the last WAL file if it has .done file, in order to prevent it frombeing archived again.This bug was added when cascading replication feature was introduced,i.e., the commit5286105.So, back-patch to 9.2, where cascading replication was added.Reviewed by Michael Paquier1 parente64d3c5 commitc7371c4
1 file changed
+9
-7
lines changedLines changed: 9 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5323 | 5323 |
| |
5324 | 5324 |
| |
5325 | 5325 |
| |
5326 |
| - | |
| 5326 | + | |
5327 | 5327 |
| |
5328 | 5328 |
| |
5329 | 5329 |
| |
| |||
5351 | 5351 |
| |
5352 | 5352 |
| |
5353 | 5353 |
| |
5354 |
| - | |
5355 |
| - | |
| 5354 | + | |
| 5355 | + | |
| 5356 | + | |
5356 | 5357 |
| |
5357 | 5358 |
| |
5358 | 5359 |
| |
5359 | 5360 |
| |
5360 | 5361 |
| |
| 5362 | + | |
5361 | 5363 |
| |
5362 | 5364 |
| |
5363 |
| - | |
5364 |
| - | |
| 5365 | + | |
| 5366 | + | |
5365 | 5367 |
| |
5366 | 5368 |
| |
5367 | 5369 |
| |
5368 | 5370 |
| |
5369 | 5371 |
| |
5370 | 5372 |
| |
5371 | 5373 |
| |
5372 |
| - | |
5373 |
| - | |
| 5374 | + | |
| 5375 | + | |
5374 | 5376 |
| |
5375 | 5377 |
| |
5376 | 5378 |
| |
|
0 commit comments
Comments
(0)