- Notifications
You must be signed in to change notification settings - Fork28
Commite183530
committed
Fix RecursiveCopy.pm to cope with disappearing files.
When copying from an active database tree, it's possible for files to bedeleted after we see them in a readdir() scan but before we can open them.(Once we've got a file open, we don't expect any further errors from itgetting unlinked, though.) Tweak RecursiveCopy so it can cope with thiscase, so as to avoid irreproducible test failures.Back-patch to 9.6 where this code was added. In v10 and HEAD, alsoremove unused "use RecursiveCopy" in one recovery test script.Michael Paquier and Tom LaneDiscussion:https://postgr.es/m/24621.1504924323@sss.pgh.pa.us1 parent57e1c00 commite183530
File tree
2 files changed
+45
-20
lines changed- src/test
- perl
- recovery/t
2 files changed
+45
-20
lines changedLines changed: 45 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
37 |
| - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 |
| |
39 | 44 |
| |
40 | 45 |
| |
| |||
74 | 79 |
| |
75 | 80 |
| |
76 | 81 |
| |
| 82 | + | |
| 83 | + | |
| 84 | + | |
77 | 85 |
| |
78 | 86 |
| |
79 | 87 |
| |
| |||
89 | 97 |
| |
90 | 98 |
| |
91 | 99 |
| |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
| 100 | + | |
| 101 | + | |
98 | 102 |
| |
99 | 103 |
| |
100 | 104 |
| |
| |||
104 | 108 |
| |
105 | 109 |
| |
106 | 110 |
| |
107 |
| - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
108 | 118 |
| |
| 119 | + | |
109 | 120 |
| |
110 | 121 |
| |
111 | 122 |
| |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
| 123 | + | |
| 124 | + | |
117 | 125 |
| |
118 |
| - | |
119 |
| - | |
120 |
| - | |
121 |
| - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
122 | 145 |
| |
123 |
| - | |
124 | 146 |
| |
125 |
| - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
126 | 152 |
| |
127 | 153 |
| |
128 | 154 |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
28 | 27 |
| |
29 | 28 |
| |
30 | 29 |
| |
|
0 commit comments
Comments
(0)