forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9951741
committed
Attempt to handle pending-delete files on Windows
These files are deleted but not yet gone from the filesystem. Operationson them will return ERROR_DELETE_PENDING.With this we start treating that as ENOENT, meaning files does notexist (which is the state it will soon reach). This should be safe inevery case except when we try to recreate a file with exactly the samename. This is an operation that PostgreSQL does very seldom, sohopefully that won't happen much -- and even if it does, this treatmentshould be no worse than treating it as an unhandled error.We've been un able to reproduce the bug reliably, so pushing this tomaster to get buildfarm coverage and other testing. Once it's proven tobe stable, it should be considered for backpatching.Discussion:https://postgr.es/m/20160712083220.1426.58667%40wrigleys.postgresql.orgPatch by me and Michael Paquier1 parent9a4d510 commit9951741
2 files changed
+18
-0
lines changedLines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
372 | 372 |
| |
373 | 373 |
| |
374 | 374 |
| |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
375 | 389 |
| |
| 390 | + | |
376 | 391 |
| |
377 | 392 |
| |
378 | 393 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
| 164 | + | |
| 165 | + | |
| 166 | + | |
164 | 167 |
| |
165 | 168 |
| |
166 | 169 |
| |
|
0 commit comments
Comments
(0)