summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2021-06-25 05:55:34 +0000
committerPeter Eisentraut2021-06-25 05:55:34 +0000
commita60c4c5c1a99746485123ae93fbd3e58c78e5d62 (patch)
tree8cbe8427e64f4cdd46eaa9f84d3416f333e60342
parent847c62ee76cbc237b3a204ca94b1b12811d698e3 (diff)
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 <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/CALj2ACWj=V1k5591eeZK2sOg2FYuBUp6azFO8tMkBtGfXf8PMQ@mail.gmail.com
-rw-r--r--src/backend/access/gist/gistutil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/access/gist/gistutil.c b/src/backend/access/gist/gistutil.c
index 8dcd53c457..43ba03b6eb 100644
--- a/src/backend/access/gist/gistutil.c
+++ b/src/backend/access/gist/gistutil.c
@@ -756,9 +756,8 @@ void
gistinitpage(Page page, uint32 f)
{
GISTPageOpaque opaque;
- Size pageSize = BLCKSZ;
- PageInit(page, pageSize, sizeof(GISTPageOpaqueData));
+ PageInit(page, BLCKSZ, sizeof(GISTPageOpaqueData));
opaque = GistPageGetOpaque(page);
opaque->rightlink = InvalidBlockNumber;