- Notifications
You must be signed in to change notification settings - Fork28
Commit677da8c
committed
Use access() to check file existence in GetNewRelFileNode()
Previous code used BasicOpenFile() and close() just to check for a filecollision, while there is no need to hold open a file descriptor butthat's an overkill here.Author: Paul GuoReviewed-by: Peter Eisentraut, Michael PaquierDiscussion:https://postgr.es/m/CABQrizcUtiHaquxK=d4etBX8GF9kbZB50Nt1gO9_aN-e9SptyQ@mail.gmail.com1 parent0903bbd commit677da8c
1 file changed
+4
-11
lines changedLines changed: 4 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
397 | 397 |
| |
398 | 398 |
| |
399 | 399 |
| |
400 |
| - | |
401 | 400 |
| |
402 | 401 |
| |
403 | 402 |
| |
| |||
445 | 444 |
| |
446 | 445 |
| |
447 | 446 |
| |
448 |
| - | |
449 | 447 |
| |
450 |
| - | |
| 448 | + | |
451 | 449 |
| |
452 | 450 |
| |
453 |
| - | |
454 | 451 |
| |
455 | 452 |
| |
456 | 453 |
| |
457 | 454 |
| |
458 | 455 |
| |
459 | 456 |
| |
460 | 457 |
| |
461 |
| - | |
462 |
| - | |
463 |
| - | |
464 |
| - | |
465 |
| - | |
466 |
| - | |
467 |
| - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
468 | 461 |
| |
469 | 462 |
| |
470 | 463 |
| |
|
0 commit comments
Comments
(0)