- Notifications
You must be signed in to change notification settings - Fork28
Commit624686a
committed
Adjust "root of to-be-deleted subtree" function.
Restructure the function that locates the root of the to-be-deletedsubtree during nbtree page deletion. Handle the conditions that makepage deletion unsafe in a slightly more uniform way, and acknowledge thefact that the behavior with incomplete splits on internal pages isdifferent (as pointed out in the nbtree README as of commit35bc0ec).Also invent new terminology that avoids ambiguity around which pages areabout to be deleted. Consistently use the term "to-be-deleted subtree",not the ambiguous term "branch".We were calling the subtree parent page the "top parent page", but thatwas quite misleading. The top parent page usually refers to a pageunlinked from its siblings and marked deleted (during the second stageof page deletion). There was one kind of top parent page that we merelyremoved a downlink from, and another kind of top parent page that weactually marked deleted. Eliminate the ambiguity by inventing a newterm ("subtree parent page") that refers to the former kind of pageonly.1 parenta8be536 commit624686a
File tree
5 files changed
+278
-215
lines changed- src
- backend/access/nbtree
- include/access
5 files changed
+278
-215
lines changedLines changed: 10 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
223 | 223 |
| |
224 | 224 |
| |
225 | 225 |
| |
226 |
| - | |
227 |
| - | |
228 |
| - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
229 | 230 |
| |
230 | 231 |
| |
231 | 232 |
| |
| |||
243 | 244 |
| |
244 | 245 |
| |
245 | 246 |
| |
246 |
| - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
247 | 253 |
| |
248 | 254 |
| |
249 | 255 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2278 | 2278 |
| |
2279 | 2279 |
| |
2280 | 2280 |
| |
2281 |
| - | |
| 2281 | + | |
| 2282 | + | |
2282 | 2283 |
| |
2283 | 2284 |
| |
2284 | 2285 |
| |
|
0 commit comments
Comments
(0)