mirror of https://github.com/postgres/postgres
Remove redundant incomplete split assertion.
The fastpath insert optimization's incomplete split flag Assert() is redundant. We'll reach the more general Assert() within _bt_findinsertloc() in all cases. (Besides, Assert()'ing that the rightmost page doesn't have the flag set never made much sense.)
This commit is contained in:
parent
8c081a2f4e
commit
fc31001123
|
@ -179,11 +179,6 @@ top:
|
|||
PageGetMaxOffsetNumber(page) >= P_FIRSTDATAKEY(lpageop) &&
|
||||
_bt_compare(rel, itup_key, page, P_FIRSTDATAKEY(lpageop)) > 0)
|
||||
{
|
||||
/*
|
||||
* The right-most block should never have an incomplete split.
|
||||
* But be paranoid and check for it anyway.
|
||||
*/
|
||||
Assert(!P_INCOMPLETE_SPLIT(lpageop));
|
||||
fastpath = true;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue