You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Commit074251d added an assertion that verified the fastpath/rightmostpage insert optimization's assumption about free space: There shouldalways be enough free space on the page to insert the new item withoutsplitting the page. Otherwise, we end up using the "concurrent rootpage split" phony/fake stack path in _bt_insert_parent(). This does notlead to incorrect behavior, but it is likely to be far slower thansimply using the regular _bt_search() path. The assertion catchesserious performance bugs that would probably take a long time to detectany other way.It seems much more natural to make this assertion just before the pointthat we generate a fake/phony descent stack. Move the assert there.This also makes _bt_insertonpg() a bit more readable.