forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita2e97cb
committed
Fix read_relmap_file() concurrency on Windows.
Commitd8cd0c6 introduced a filerename that could fail on Windows, probably due to other backendshaving an open file handle to the old file of the same name.Re-arrange the locking slightly to prevent that, by making sure theopen() and close() run while we hold the lock.Thomas Munro. I added an explanatory comment.Discussion:https://postgr.es/m/CA%2BhUKGLZtCTgp4NTWV-wGbR2Nyag71%3DEfYTKjDKnk%2BfkhuFMHw%40mail.gmail.com1 parentce3049b commita2e97cb
1 file changed
+21
-13
lines changedLines changed: 21 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
788 | 788 |
| |
789 | 789 |
| |
790 | 790 |
| |
791 |
| - | |
792 |
| - | |
793 |
| - | |
794 |
| - | |
795 |
| - | |
796 |
| - | |
797 |
| - | |
798 |
| - | |
799 |
| - | |
800 |
| - | |
801 | 791 |
| |
802 | 792 |
| |
803 | 793 |
| |
| |||
808 | 798 |
| |
809 | 799 |
| |
810 | 800 |
| |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
811 | 819 |
| |
812 | 820 |
| |
813 | 821 |
| |
| |||
825 | 833 |
| |
826 | 834 |
| |
827 | 835 |
| |
828 |
| - | |
829 |
| - | |
830 |
| - | |
831 | 836 |
| |
832 | 837 |
| |
833 | 838 |
| |
834 | 839 |
| |
835 | 840 |
| |
836 | 841 |
| |
| 842 | + | |
| 843 | + | |
| 844 | + | |
837 | 845 |
| |
838 | 846 |
| |
839 | 847 |
| |
|
0 commit comments
Comments
(0)