- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitf1634c9
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 parent2759924 commitf1634c9
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
| |||
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
| 57 | + | |
56 | 58 |
| |
| 59 | + | |
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
| |||
131 | 134 |
| |
132 | 135 |
| |
133 | 136 |
| |
| 137 | + | |
134 | 138 |
| |
| 139 | + | |
135 | 140 |
| |
136 | 141 |
| |
137 | 142 |
| |
| |||
235 | 240 |
| |
236 | 241 |
| |
237 | 242 |
| |
| 243 | + | |
238 | 244 |
| |
| 245 | + | |
239 | 246 |
| |
240 | 247 |
| |
241 | 248 |
| |
| |||
302 | 309 |
| |
303 | 310 |
| |
304 | 311 |
| |
| 312 | + | |
305 | 313 |
| |
| 314 | + | |
306 | 315 |
| |
307 | 316 |
| |
308 | 317 |
| |
|
0 commit comments
Comments
(0)