Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a60c4c5

Browse files
committed
Remove redundant variable pageSize in gistinitpage
In gistinitpage, pageSize variable looks redundant, instead just pass BLCKSZ. This will be consistent with its peers BloomInitPage, brin_page_init and SpGistInitPage. Author: Bharath Rupireddy <bharath.rupireddy@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/CALj2ACWj=V1k5591eeZK2sOg2FYuBUp6azFO8tMkBtGfXf8PMQ@mail.gmail.com
1 parent 847c62e commit a60c4c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/access/gist/gistutil.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -756,9 +756,8 @@ void
756756
gistinitpage(Page page, uint32 f)
757757
{
758758
GISTPageOpaque opaque;
759-
Size pageSize = BLCKSZ;
760759

761-
PageInit(page, pageSize, sizeof(GISTPageOpaqueData));
760+
PageInit(page, BLCKSZ, sizeof(GISTPageOpaqueData));
762761

763762
opaque = GistPageGetOpaque(page);
764763
opaque->rightlink = InvalidBlockNumber;

0 commit comments

Comments
 (0)