forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3f34283
committed
Correct obsolete nbtree page split comment.
Commit40dae7e, which made the nbtree page split algorithm morerobust, made _bt_insert_parent() only unlock the right child of theparent page before inserting a new downlink into the parent. Update acomment from the Berkeley days claiming that both left and right childpages are unlocked before the new downlink actually gets inserted.The claim that it is okay to release both locks early based on Lehmanand Yao's say-so never made much sense. Lehman and Yao must sometimes"couple" buffer locks across a pair of internal pages when relocating adownlink, unlike the corresponding code within _bt_getstack().1 parentf1d85aa commit3f34283
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
908 | 908 |
| |
909 | 909 |
| |
910 | 910 |
| |
911 |
| - | |
912 |
| - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
913 | 915 |
| |
914 | 916 |
| |
915 | 917 |
| |
|
0 commit comments
Comments
(0)