aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2024-01-02 12:24:28 -0500
committerRobert Haas <rhaas@postgresql.org>2024-01-02 12:24:28 -0500
commite62e73f3a2f2af765a3c69486ed78a5bc451367e (patch)
tree9ff64936829d126e7205b9ecbfa735f7471da633 /src/backend/access/gist/gist.c
parent591cf626e71b460c53bef23347b93a0cfbd91f0f (diff)
downloadpostgresql-e62e73f3a2f2af765a3c69486ed78a5bc451367e.tar.gz
postgresql-e62e73f3a2f2af765a3c69486ed78a5bc451367e.zip
gist: fix typo "split(t)ed" -> "split"
Dagfinn Ilmari Mannsåker, reviewed by Shubham Khanna. Discussion: http://postgr.es/m/87le9fmi01.fsf@wibble.ilmari.org
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r--src/backend/access/gist/gist.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c
index e052ba8bda2..133676892e1 100644
--- a/src/backend/access/gist/gist.c
+++ b/src/backend/access/gist/gist.c
@@ -44,7 +44,7 @@ static void gistprunepage(Relation rel, Page page, Buffer buffer,
#define ROTATEDIST(d) do { \
- SplitedPageLayout *tmp=(SplitedPageLayout*)palloc0(sizeof(SplitedPageLayout)); \
+ SplitPageLayout *tmp=(SplitPageLayout*)palloc0(sizeof(SplitPageLayout)); \
tmp->block.blkno = InvalidBlockNumber; \
tmp->buffer = InvalidBuffer; \
tmp->next = (d); \
@@ -283,11 +283,11 @@ gistplacetopage(Relation rel, Size freespace, GISTSTATE *giststate,
/* no space for insertion */
IndexTuple *itvec;
int tlen;
- SplitedPageLayout *dist = NULL,
+ SplitPageLayout *dist = NULL,
*ptr;
BlockNumber oldrlink = InvalidBlockNumber;
GistNSN oldnsn = 0;
- SplitedPageLayout rootpg;
+ SplitPageLayout rootpg;
bool is_rootsplit;
int npage;
@@ -1080,7 +1080,7 @@ gistFindCorrectParent(Relation r, GISTInsertStack *child, bool is_build)
{
/*
* End of chain and still didn't find parent. It's a very-very
- * rare situation when root splitted.
+ * rare situation when the root was split.
*/
break;
}
@@ -1435,7 +1435,7 @@ gistfinishsplit(GISTInsertState *state, GISTInsertStack *stack,
* used for XLOG and real writes buffers. Function is recursive, ie
* it will split page until keys will fit in every page.
*/
-SplitedPageLayout *
+SplitPageLayout *
gistSplit(Relation r,
Page page,
IndexTuple *itup, /* contains compressed entry */
@@ -1446,7 +1446,7 @@ gistSplit(Relation r,
*rvectup;
GistSplitVector v;
int i;
- SplitedPageLayout *res = NULL;
+ SplitPageLayout *res = NULL;
/* this should never recurse very deeply, but better safe than sorry */
check_stack_depth();
@@ -1496,7 +1496,7 @@ gistSplit(Relation r,
if (!gistfitpage(lvectup, v.splitVector.spl_nleft))
{
- SplitedPageLayout *resptr,
+ SplitPageLayout *resptr,
*subres;
resptr = subres = gistSplit(r, page, lvectup, v.splitVector.spl_nleft, giststate);