forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitae9da35
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 parent6fd1dbd commitae9da35
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 |
| |
| |||
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
| 58 | + | |
57 | 59 |
| |
| 60 | + | |
58 | 61 |
| |
59 | 62 |
| |
60 | 63 |
| |
| |||
132 | 135 |
| |
133 | 136 |
| |
134 | 137 |
| |
| 138 | + | |
135 | 139 |
| |
| 140 | + | |
136 | 141 |
| |
137 | 142 |
| |
138 | 143 |
| |
| |||
235 | 240 |
| |
236 | 241 |
| |
237 | 242 |
| |
| 243 | + | |
238 | 244 |
| |
| 245 | + | |
239 | 246 |
| |
240 | 247 |
| |
241 | 248 |
| |
| |||
300 | 307 |
| |
301 | 308 |
| |
302 | 309 |
| |
| 310 | + | |
303 | 311 |
| |
| 312 | + | |
304 | 313 |
| |
305 | 314 |
| |
306 | 315 |
| |
|
0 commit comments
Comments
(0)