Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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