!4069 移除冗余的判断逻辑

Merge pull request !4069 from 姚军/master
This commit is contained in:
opengauss_bot
2023-10-08 01:50:41 +00:00
committed by Gitee

View File

@ -466,9 +466,7 @@ static void UBTreeRecsplitloc(FindSplitData *state, OffsetNumber firstoldonright
* data from the first item that winds up on the right page.
*/
if (!state->is_leaf) {
int indexTupleDataSize = state->is_leaf ?
MAXALIGN(sizeof(IndexTupleData)) :
(MAXALIGN(sizeof(IndexTupleData)) - TXNINFOSIZE);
int indexTupleDataSize = (MAXALIGN(sizeof(IndexTupleData)) - TXNINFOSIZE);
rightfree += (int16)firstrightitemsz - (int16)(indexTupleDataSize + sizeof(ItemIdData));
}