mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Fix comment on B-tree insertion fastpath condition.
The comment earlier in the function correctly states "and the insertion key is strictly greater than the first key in this page". That is what we check here, not "greater than or equal".
This commit is contained in:
parent
3b8f6e75f3
commit
29d7ebf51e
@ -171,9 +171,9 @@ top:
|
||||
|
||||
/*
|
||||
* Check if the page is still the rightmost leaf page, has enough
|
||||
* free space to accommodate the new tuple, no split is in progress
|
||||
* and the scankey is greater than or equal to the first key on the
|
||||
* page.
|
||||
* free space to accommodate the new tuple, no split is in
|
||||
* progress, and the insertion scan key is strictly greater than
|
||||
* the first key on the page.
|
||||
*/
|
||||
if (P_ISLEAF(lpageop) && P_RIGHTMOST(lpageop) &&
|
||||
!P_INCOMPLETE_SPLIT(lpageop) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user