forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit19cd31b
committed
Fix bug introduced into _bt_getstackbuf() on 2003-Feb-21: the initial
value of 'start' could be past the end of the page, if the page wassplit by some concurrent inserting process since we visited it. Inthis situation the code could look at bogus entries and possibly finda match (since after all those entries still contain what they hadbefore the split). This would lead to 'specified item offset is too large'followed by 'PANIC: failed to add item to the page', as reported by JoeConway for scenarios involving heavy concurrent insertion activity.1 parentfcaad7e commit19cd31b
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1311 | 1311 |
| |
1312 | 1312 |
| |
1313 | 1313 |
| |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1314 | 1321 |
| |
1315 | 1322 |
| |
1316 | 1323 |
| |
|
0 commit comments
Comments
(0)