Content-Length: 260112 | pFad | http://github.com/postgrespro/postgres/commit/a60c4c5c1a99746485123ae93fbd3e58c78e5d62

58 Remove redundant variable pageSize in gistinitpage · postgrespro/postgres@a60c4c5 · GitHub
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

Lines changed: 1 addition & 2 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/a60c4c5c1a99746485123ae93fbd3e58c78e5d62

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy