Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e6ba1ad

Browse filesBrowse files
author
Ekaterina Sokolova
committed
[PGPRO-8962] Remove unused variable.
Variable 'totalCount'. It appeared in c1df4cc and was already unnecessary. Tags: rum.
1 parent c40b86e commit e6ba1ad
Copy full SHA for e6ba1ad

File tree

1 file changed

+0
-6
lines changed
Filter options

1 file changed

+0
-6
lines changed

‎src/rumdatapage.c

Copy file name to clipboardExpand all lines: src/rumdatapage.c
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
10601060
RumItem maxLeftItem,
10611061
curItem;
10621062
RumItem item;
1063-
int totalCount = 0;
10641063
int maxItemIndex = btree->curitem;
10651064
/*
10661065
* Must have lpageCopy MAXALIGNed to use PG macros to access data in
@@ -1100,7 +1099,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
11001099
&item, &prevIptr, btree->rumstate, totalsize);
11011100

11021101
maxItemIndex++;
1103-
totalCount++;
11041102
maxItemSize = Max(maxItemSize, totalsize - prevTotalsize);
11051103
}
11061104

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

1115-
totalCount++;
11161113
maxItemSize = Max(maxItemSize, totalsize - prevTotalsize);
11171114
}
11181115

@@ -1134,7 +1131,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
11341131
2 * RumDataPageSize - 2 * maxItemSize - 2 * MAXIMUM_ALIGNOF)
11351132
{
11361133
maxItemIndex++;
1137-
totalCount++;
11381134
maxItemSize = Max(maxItemSize, newTotalsize - totalsize);
11391135
totalsize = newTotalsize;
11401136

@@ -1148,8 +1144,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
11481144
totalsize = rumCheckPlaceToDataPageLeaf(btree->entryAttnum,
11491145
&item, &prevIptr, btree->rumstate, totalsize);
11501146
maxItemIndex++;
1151-
1152-
totalCount++;
11531147
}
11541148
}
11551149

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.