Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into PGPRO-9026
Browse files Browse the repository at this point in the history
  • Loading branch information
Marina Polyakova committed Nov 17, 2023
2 parents 6ccd052 + 3b26d4d commit 9e78b97
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/rumdatapage.c
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
RumItem maxLeftItem,
curItem;
RumItem item;
int totalCount = 0;
int maxItemIndex = btree->curitem;
/*
* Must have lpageCopy MAXALIGNed to use PG macros to access data in
Expand Down Expand Up @@ -1100,7 +1099,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
&item, &prevIptr, btree->rumstate, totalsize);

maxItemIndex++;
totalCount++;
maxItemSize = Max(maxItemSize, totalsize - prevTotalsize);
}

Expand All @@ -1112,7 +1110,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
totalsize = rumCheckPlaceToDataPageLeaf(btree->entryAttnum,
&item, &prevIptr, btree->rumstate, totalsize);

totalCount++;
maxItemSize = Max(maxItemSize, totalsize - prevTotalsize);
}

Expand All @@ -1134,7 +1131,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
2 * RumDataPageSize - 2 * maxItemSize - 2 * MAXIMUM_ALIGNOF)
{
maxItemIndex++;
totalCount++;
maxItemSize = Max(maxItemSize, newTotalsize - totalsize);
totalsize = newTotalsize;

Expand All @@ -1148,8 +1144,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
totalsize = rumCheckPlaceToDataPageLeaf(btree->entryAttnum,
&item, &prevIptr, btree->rumstate, totalsize);
maxItemIndex++;

totalCount++;
}
}

Expand Down

0 comments on commit 9e78b97

Please sign in to comment.