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.)
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