forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc558e6f
committed
Acquire ControlFileLock in relevant SQL functions.
Commitdc7d70e added functions that read the control file, but didn'tacquire ControlFileLock. With unlucky timing, file systems that haveweak interlocking like ext4 and ntfs could expose partially overwrittencontents, and the checksum would fail.Back-patch to all supported releases.Reviewed-by: David Steele <david@pgmasters.net>Reviewed-by: Anton A. Melnikov <aamelnikov@inbox.ru>Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/20221123014224.xisi44byq3cf5psi%40awork3.anarazel.de1 parent5f27b5f commitc558e6f
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
| 46 | + | |
45 | 47 |
| |
| 48 | + | |
46 | 49 |
| |
47 | 50 |
| |
48 | 51 |
| |
| |||
80 | 83 |
| |
81 | 84 |
| |
82 | 85 |
| |
| 86 | + | |
83 | 87 |
| |
| 88 | + | |
84 | 89 |
| |
85 | 90 |
| |
86 | 91 |
| |
| |||
169 | 174 |
| |
170 | 175 |
| |
171 | 176 |
| |
| 177 | + | |
172 | 178 |
| |
| 179 | + | |
173 | 180 |
| |
174 | 181 |
| |
175 | 182 |
| |
| |||
208 | 215 |
| |
209 | 216 |
| |
210 | 217 |
| |
| 218 | + | |
211 | 219 |
| |
| 220 | + | |
212 | 221 |
| |
213 | 222 |
| |
214 | 223 |
| |
|
0 commit comments
Comments
(0)