mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user