- Notifications
You must be signed in to change notification settings - Fork5
Commita453951
committed
Take exclusive buffer lock in scan_heap() to eliminate some corner cases
in which invalid page data could be transiently written to disk byconcurrent bgwriter activity. There doesn't seem any risk of loss ofactual user data, but an empty page could possibly be left corrupt if acrash occurs before the correct data gets written out. Pointed out byAlvaro Herrera.1 parent4f915cd commita453951
2 files changed
+13
-6
lines changedLines changed: 11 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
1273 | 1273 |
| |
1274 | 1274 |
| |
1275 | 1275 |
| |
1276 |
| - | |
1277 |
| - | |
1278 |
| - | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
1279 | 1282 |
| |
| 1283 | + | |
1280 | 1284 |
| |
1281 | 1285 |
| |
1282 | 1286 |
| |
| |||
1297 | 1301 |
| |
1298 | 1302 |
| |
1299 | 1303 |
| |
| 1304 | + | |
1300 | 1305 |
| |
1301 | 1306 |
| |
1302 | 1307 |
| |
| |||
1312 | 1317 |
| |
1313 | 1318 |
| |
1314 | 1319 |
| |
| 1320 | + | |
1315 | 1321 |
| |
1316 | 1322 |
| |
1317 | 1323 |
| |
| |||
1520 | 1526 |
| |
1521 | 1527 |
| |
1522 | 1528 |
| |
| 1529 | + | |
1523 | 1530 |
| |
1524 | 1531 |
| |
1525 | 1532 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + | |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| |||
299 | 299 |
| |
300 | 300 |
| |
301 | 301 |
| |
302 |
| - | |
| 302 | + | |
303 | 303 |
| |
304 | 304 |
| |
305 | 305 |
| |
|
0 commit comments
Comments
(0)