- Notifications
You must be signed in to change notification settings - Fork5
Commitf9b50b7
committed
Fix removal of files in pgstats directories
Instead of deleting all files in stats_temp_directory and the permanentdirectory on a crash, only remove those files that match the pattern offiles we actually write in them, to avoid possibly clobbering existingunrelated contents of the temporary directory. Per complaint from JeffJanes, and subsequent discussion, starting at messageCAMkU=1z9+7RsDODnT4=cDFBRBp8wYQbd_qsLcMtKEf-oFwuOdQ@mail.gmail.comAlso, fix a bug in the same routine to avoid removing files from thepermanent directory twice (instead of once from that directory and thenfrom the temporary directory), also per report from Jeff Janes, inmessageCAMkU=1wbk947=-pAosDMX5VC+sQw9W4ttq6RM9rXu=MjNeEQKA@mail.gmail.com1 parent3619a20 commitf9b50b7
1 file changed
+28
-5
lines changedLines changed: 28 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
563 | 563 |
| |
564 | 564 |
| |
565 | 565 |
| |
566 |
| - | |
567 |
| - | |
| 566 | + | |
| 567 | + | |
568 | 568 |
| |
569 |
| - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
570 | 576 |
| |
571 | 577 |
| |
572 |
| - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
573 | 595 |
| |
574 |
| - | |
| 596 | + | |
575 | 597 |
| |
576 | 598 |
| |
577 | 599 |
| |
| |||
3631 | 3653 |
| |
3632 | 3654 |
| |
3633 | 3655 |
| |
| 3656 | + | |
3634 | 3657 |
| |
3635 | 3658 |
| |
3636 | 3659 |
| |
|
0 commit comments
Comments
(0)