Commit f01157e
committed
Further simplify nbtree high key truncation.
Commit 7c2dbc6 reorganized _bt_truncate() in a way that enables a
further simplification that I (pgeoghegan) missed: Since we mark the
tuple that is returned to the caller as a pivot tuple before the point
where its heap TID is set as of 7c2dbc6, it is possible to use the high
level BTreeTupleGetHeapTID() inline function to get an item pointer. Do
it that way now. This approach is clearer and more maintainable.1 parent dd9ac7d commit f01157e
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2251 | 2251 | | |
2252 | 2252 | | |
2253 | 2253 | | |
| 2254 | + | |
2254 | 2255 | | |
2255 | 2256 | | |
2256 | 2257 | | |
| |||
2259 | 2260 | | |
2260 | 2261 | | |
2261 | 2262 | | |
2262 | | - | |
2263 | | - | |
2264 | 2263 | | |
2265 | 2264 | | |
2266 | 2265 | | |
| |||
0 commit comments