forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit62620b6
committed
Clarify nbtree parallel scan _bt_endpoint contract.
_bt_endpoint is a helper function for _bt_first that's called wheneverno useful insertion scan key can be used, and we need to lock and readeither the leftmost or rightmost leaf page in the index. Simplify anddocument its preconditions, relieving its _bt_first caller from havingto end the parallel scan when it returns false.Also stop unnecessarily invalidating the current scan position in nearbycode in both _bt_first and _bt_endpoint. This seems to have beencopy-pasted from _bt_readnextpage, where invalidating the scan's currentposition really is necessary.Follow-up to the refactoring work in commit1bd4bc8.1 parent1fe0466 commit62620b6
2 files changed
+17
-27
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
762 | 762 |
| |
763 | 763 |
| |
764 | 764 |
| |
| 765 | + | |
| 766 | + | |
765 | 767 |
| |
766 | 768 |
| |
767 | 769 |
| |
768 | 770 |
| |
769 | 771 |
| |
770 | 772 |
| |
771 |
| - | |
| 773 | + | |
772 | 774 |
| |
773 | 775 |
| |
774 | 776 |
| |
|
Lines changed: 14 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1161 | 1161 |
| |
1162 | 1162 |
| |
1163 | 1163 |
| |
| 1164 | + | |
| 1165 | + | |
1164 | 1166 |
| |
1165 | 1167 |
| |
1166 |
| - | |
1167 |
| - | |
1168 |
| - | |
1169 |
| - | |
1170 |
| - | |
1171 |
| - | |
1172 |
| - | |
1173 |
| - | |
1174 |
| - | |
1175 |
| - | |
1176 |
| - | |
1177 |
| - | |
1178 |
| - | |
| 1168 | + | |
1179 | 1169 |
| |
1180 | 1170 |
| |
1181 | 1171 |
| |
1182 | 1172 |
| |
1183 | 1173 |
| |
1184 | 1174 |
| |
1185 |
| - | |
| 1175 | + | |
1186 | 1176 |
| |
1187 | 1177 |
| |
1188 | 1178 |
| |
| |||
1425 | 1415 |
| |
1426 | 1416 |
| |
1427 | 1417 |
| |
1428 |
| - | |
1429 |
| - | |
1430 |
| - | |
1431 |
| - | |
1432 | 1418 |
| |
1433 |
| - | |
1434 | 1419 |
| |
1435 | 1420 |
| |
1436 | 1421 |
| |
| |||
2267 | 2252 |
| |
2268 | 2253 |
| |
2269 | 2254 |
| |
2270 |
| - | |
2271 | 2255 |
| |
| 2256 | + | |
2272 | 2257 |
| |
2273 | 2258 |
| |
2274 | 2259 |
| |
| |||
2288 | 2273 |
| |
2289 | 2274 |
| |
2290 | 2275 |
| |
2291 |
| - | |
2292 | 2276 |
| |
| 2277 | + | |
2293 | 2278 |
| |
2294 | 2279 |
| |
2295 | 2280 |
| |
| |||
2564 | 2549 |
| |
2565 | 2550 |
| |
2566 | 2551 |
| |
2567 |
| - | |
2568 |
| - | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
2569 | 2556 |
| |
2570 | 2557 |
| |
2571 | 2558 |
| |
| |||
2577 | 2564 |
| |
2578 | 2565 |
| |
2579 | 2566 |
| |
| 2567 | + | |
| 2568 | + | |
2580 | 2569 |
| |
2581 | 2570 |
| |
2582 |
| - | |
2583 |
| - | |
| 2571 | + | |
2584 | 2572 |
| |
2585 | 2573 |
| |
2586 | 2574 |
| |
| |||
2591 | 2579 |
| |
2592 | 2580 |
| |
2593 | 2581 |
| |
2594 |
| - | |
| 2582 | + | |
2595 | 2583 |
| |
2596 | 2584 |
| |
2597 | 2585 |
| |
|
0 commit comments
Comments
(0)