- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitd0b6aca
Remove XLogFileInit() ability to unlink a pre-existing file.
Only initdb used it. initdb refuses to operate on a non-empty directoryand generally does not cope with pre-existing files of other kinds.Hence, use the opportunity to simplify.This commit has been applied as of421484f in v15 and newerversions. This is required on stable branches of v13 and v14 to fix aregression reported by Noah Misch, introduced by1f95181, causingspurious failures in archive recovery (neither streaming nor archiverecovery) with concurrent restartpoints. The backpatched versions ofthe patches have been aligned on these branches by me, Noah Misch is theauthor. Tests have been conducted by the both of us.Reported-by: Arun ThirupathiAuthor: Noah Misch <noah@leadboat.com>Discussion:https://postgr.es/m/20210202151416.GB3304930@rfd.leadboat.comDiscussion:https://postgr.es/m/20250306193013.36.nmisch@google.comBackpatch-through: 131 parent20e5ef3 commitd0b6aca
File tree
3 files changed
+28
-39
lines changed- src
- backend
- access/transam
- replication
- include/access
3 files changed
+28
-39
lines changedLines changed: 25 additions & 36 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2440 | 2440 |
| |
2441 | 2441 |
| |
2442 | 2442 |
| |
2443 |
| - | |
| 2443 | + | |
2444 | 2444 |
| |
2445 | 2445 |
| |
2446 | 2446 |
| |
| |||
2507 | 2507 |
| |
2508 | 2508 |
| |
2509 | 2509 |
| |
2510 |
| - | |
2511 |
| - | |
| 2510 | + | |
2512 | 2511 |
| |
2513 | 2512 |
| |
2514 | 2513 |
| |
| |||
3258 | 3257 |
| |
3259 | 3258 |
| |
3260 | 3259 |
| |
3261 |
| - | |
3262 |
| - | |
3263 |
| - | |
| 3260 | + | |
3264 | 3261 |
| |
3265 | 3262 |
| |
3266 | 3263 |
| |
| |||
3270 | 3267 |
| |
3271 | 3268 |
| |
3272 | 3269 |
| |
3273 |
| - | |
| 3270 | + | |
3274 | 3271 |
| |
3275 | 3272 |
| |
3276 | 3273 |
| |
| |||
3286 | 3283 |
| |
3287 | 3284 |
| |
3288 | 3285 |
| |
3289 |
| - | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
3290 | 3289 |
| |
3291 |
| - | |
3292 |
| - | |
3293 |
| - | |
3294 |
| - | |
3295 |
| - | |
3296 |
| - | |
3297 |
| - | |
3298 |
| - | |
3299 |
| - | |
3300 |
| - | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
3301 | 3294 |
| |
| 3295 | + | |
| 3296 | + | |
3302 | 3297 |
| |
3303 | 3298 |
| |
3304 | 3299 |
| |
| |||
3395 | 3390 |
| |
3396 | 3391 |
| |
3397 | 3392 |
| |
3398 |
| - | |
3399 |
| - | |
3400 |
| - | |
3401 |
| - | |
3402 |
| - | |
3403 |
| - | |
| 3393 | + | |
| 3394 | + | |
| 3395 | + | |
3404 | 3396 |
| |
3405 | 3397 |
| |
3406 | 3398 |
| |
| |||
3414 | 3406 |
| |
3415 | 3407 |
| |
3416 | 3408 |
| |
3417 |
| - | |
3418 |
| - | |
3419 |
| - | |
| 3409 | + | |
| 3410 | + | |
3420 | 3411 |
| |
3421 | 3412 |
| |
3422 | 3413 |
| |
| |||
3901 | 3892 |
| |
3902 | 3893 |
| |
3903 | 3894 |
| |
3904 |
| - | |
| 3895 | + | |
3905 | 3896 |
| |
3906 | 3897 |
| |
3907 | 3898 |
| |
3908 | 3899 |
| |
3909 | 3900 |
| |
3910 | 3901 |
| |
3911 | 3902 |
| |
3912 |
| - | |
3913 |
| - | |
| 3903 | + | |
3914 | 3904 |
| |
3915 |
| - | |
| 3905 | + | |
3916 | 3906 |
| |
3917 | 3907 |
| |
3918 | 3908 |
| |
| |||
5225 | 5215 |
| |
5226 | 5216 |
| |
5227 | 5217 |
| |
5228 |
| - | |
| 5218 | + | |
5229 | 5219 |
| |
5230 | 5220 |
| |
5231 | 5221 |
| |
| |||
5322 | 5312 |
| |
5323 | 5313 |
| |
5324 | 5314 |
| |
5325 |
| - | |
5326 |
| - | |
| 5315 | + | |
5327 | 5316 |
| |
5328 | 5317 |
| |
5329 | 5318 |
| |
| |||
5629 | 5618 |
| |
5630 | 5619 |
| |
5631 | 5620 |
| |
5632 |
| - | |
| 5621 | + | |
5633 | 5622 |
| |
5634 | 5623 |
| |
5635 |
| - | |
| 5624 | + | |
5636 | 5625 |
| |
5637 | 5626 |
| |
5638 | 5627 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
918 | 918 |
| |
919 | 919 |
| |
920 | 920 |
| |
921 |
| - | |
| 921 | + | |
922 | 922 |
| |
923 | 923 |
| |
924 | 924 |
| |
925 |
| - | |
| 925 | + | |
926 | 926 |
| |
927 | 927 |
| |
928 | 928 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
286 | 286 |
| |
287 | 287 |
| |
288 | 288 |
| |
289 |
| - | |
| 289 | + | |
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
|
0 commit comments
Comments
(0)