1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

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
This commit is contained in:
Robert Haas
2024-01-02 12:24:28 -05:00
parent 591cf626e7
commit e62e73f3a2
7 changed files with 25 additions and 25 deletions

View File

@ -44,7 +44,7 @@ static void gistprunepage(Relation rel, Page page, Buffer buffer,
#define ROTATEDIST(d) do { \ #define ROTATEDIST(d) do { \
SplitedPageLayout *tmp=(SplitedPageLayout*)palloc0(sizeof(SplitedPageLayout)); \ SplitPageLayout *tmp=(SplitPageLayout*)palloc0(sizeof(SplitPageLayout)); \
tmp->block.blkno = InvalidBlockNumber; \ tmp->block.blkno = InvalidBlockNumber; \
tmp->buffer = InvalidBuffer; \ tmp->buffer = InvalidBuffer; \
tmp->next = (d); \ tmp->next = (d); \
@ -283,11 +283,11 @@ gistplacetopage(Relation rel, Size freespace, GISTSTATE *giststate,
/* no space for insertion */ /* no space for insertion */
IndexTuple *itvec; IndexTuple *itvec;
int tlen; int tlen;
SplitedPageLayout *dist = NULL, SplitPageLayout *dist = NULL,
*ptr; *ptr;
BlockNumber oldrlink = InvalidBlockNumber; BlockNumber oldrlink = InvalidBlockNumber;
GistNSN oldnsn = 0; GistNSN oldnsn = 0;
SplitedPageLayout rootpg; SplitPageLayout rootpg;
bool is_rootsplit; bool is_rootsplit;
int npage; 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 * 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; break;
} }
@ -1435,7 +1435,7 @@ gistfinishsplit(GISTInsertState *state, GISTInsertStack *stack,
* used for XLOG and real writes buffers. Function is recursive, ie * used for XLOG and real writes buffers. Function is recursive, ie
* it will split page until keys will fit in every page. * it will split page until keys will fit in every page.
*/ */
SplitedPageLayout * SplitPageLayout *
gistSplit(Relation r, gistSplit(Relation r,
Page page, Page page,
IndexTuple *itup, /* contains compressed entry */ IndexTuple *itup, /* contains compressed entry */
@ -1446,7 +1446,7 @@ gistSplit(Relation r,
*rvectup; *rvectup;
GistSplitVector v; GistSplitVector v;
int i; int i;
SplitedPageLayout *res = NULL; SplitPageLayout *res = NULL;
/* this should never recurse very deeply, but better safe than sorry */ /* this should never recurse very deeply, but better safe than sorry */
check_stack_depth(); check_stack_depth();
@ -1496,7 +1496,7 @@ gistSplit(Relation r,
if (!gistfitpage(lvectup, v.splitVector.spl_nleft)) if (!gistfitpage(lvectup, v.splitVector.spl_nleft))
{ {
SplitedPageLayout *resptr, SplitPageLayout *resptr,
*subres; *subres;
resptr = subres = gistSplit(r, page, lvectup, v.splitVector.spl_nleft, giststate); resptr = subres = gistSplit(r, page, lvectup, v.splitVector.spl_nleft, giststate);

View File

@ -527,7 +527,7 @@ gist_indexsortbuild_levelstate_flush(GISTBuildState *state,
BlockNumber blkno; BlockNumber blkno;
MemoryContext oldCtx; MemoryContext oldCtx;
IndexTuple union_tuple; IndexTuple union_tuple;
SplitedPageLayout *dist; SplitPageLayout *dist;
IndexTuple *itvec; IndexTuple *itvec;
int vect_len; int vect_len;
bool isleaf = GistPageIsLeaf(levelstate->pages[0]); bool isleaf = GistPageIsLeaf(levelstate->pages[0]);
@ -555,8 +555,8 @@ gist_indexsortbuild_levelstate_flush(GISTBuildState *state,
} }
else else
{ {
/* Create splitted layout from single page */ /* Create split layout from single page */
dist = (SplitedPageLayout *) palloc0(sizeof(SplitedPageLayout)); dist = (SplitPageLayout *) palloc0(sizeof(SplitPageLayout));
union_tuple = gistunion(state->indexrel, itvec, vect_len, union_tuple = gistunion(state->indexrel, itvec, vect_len,
state->giststate); state->giststate);
dist->itup = union_tuple; dist->itup = union_tuple;

View File

@ -163,7 +163,7 @@ gistGetNodeBuffer(GISTBuildBuffers *gfbb, GISTSTATE *giststate,
* not arbitrary that the new buffer is put to the beginning of the * not arbitrary that the new buffer is put to the beginning of the
* list: in the final emptying phase we loop through all buffers at * list: in the final emptying phase we loop through all buffers at
* each level, and flush them. If a page is split during the emptying, * each level, and flush them. If a page is split during the emptying,
* it's more efficient to flush the new splitted pages first, before * it's more efficient to flush the new split pages first, before
* moving on to pre-existing pages on the level. The buffers just * moving on to pre-existing pages on the level. The buffers just
* created during the page split are likely still in cache, so * created during the page split are likely still in cache, so
* flushing them immediately is more efficient than putting them to * flushing them immediately is more efficient than putting them to
@ -518,7 +518,7 @@ gistFreeBuildBuffers(GISTBuildBuffers *gfbb)
/* /*
* Data structure representing information about node buffer for index tuples * Data structure representing information about node buffer for index tuples
* relocation from splitted node buffer. * relocation from split node buffer.
*/ */
typedef struct typedef struct
{ {
@ -549,12 +549,12 @@ gistRelocateBuildBuffersOnSplit(GISTBuildBuffers *gfbb, GISTSTATE *giststate,
GISTNodeBuffer oldBuf; GISTNodeBuffer oldBuf;
ListCell *lc; ListCell *lc;
/* If the splitted page doesn't have buffers, we have nothing to do. */ /* If the split page doesn't have buffers, we have nothing to do. */
if (!LEVEL_HAS_BUFFERS(level, gfbb)) if (!LEVEL_HAS_BUFFERS(level, gfbb))
return; return;
/* /*
* Get the node buffer of the splitted page. * Get the node buffer of the split page.
*/ */
blocknum = BufferGetBlockNumber(buffer); blocknum = BufferGetBlockNumber(buffer);
nodeBuffer = hash_search(gfbb->nodeBuffersTab, &blocknum, nodeBuffer = hash_search(gfbb->nodeBuffersTab, &blocknum,

View File

@ -495,12 +495,12 @@ gist_mask(char *pagedata, BlockNumber blkno)
*/ */
XLogRecPtr XLogRecPtr
gistXLogSplit(bool page_is_leaf, gistXLogSplit(bool page_is_leaf,
SplitedPageLayout *dist, SplitPageLayout *dist,
BlockNumber origrlink, GistNSN orignsn, BlockNumber origrlink, GistNSN orignsn,
Buffer leftchildbuf, bool markfollowright) Buffer leftchildbuf, bool markfollowright)
{ {
gistxlogPageSplit xlrec; gistxlogPageSplit xlrec;
SplitedPageLayout *ptr; SplitPageLayout *ptr;
int npage = 0; int npage = 0;
XLogRecPtr recptr; XLogRecPtr recptr;
int i; int i;

View File

@ -187,8 +187,8 @@ typedef struct gistxlogPage
int num; /* number of index tuples following */ int num; /* number of index tuples following */
} gistxlogPage; } gistxlogPage;
/* SplitedPageLayout - gistSplit function result */ /* SplitPageLayout - gistSplit function result */
typedef struct SplitedPageLayout typedef struct SplitPageLayout
{ {
gistxlogPage block; gistxlogPage block;
IndexTupleData *list; IndexTupleData *list;
@ -197,8 +197,8 @@ typedef struct SplitedPageLayout
Page page; /* to operate */ Page page; /* to operate */
Buffer buffer; /* to write after all proceed */ Buffer buffer; /* to write after all proceed */
struct SplitedPageLayout *next; struct SplitPageLayout *next;
} SplitedPageLayout; } SplitPageLayout;
/* /*
* GISTInsertStack used for locking buffers and transfer arguments during * GISTInsertStack used for locking buffers and transfer arguments during
@ -432,8 +432,8 @@ extern bool gistplacetopage(Relation rel, Size freespace, GISTSTATE *giststate,
Relation heapRel, Relation heapRel,
bool is_build); bool is_build);
extern SplitedPageLayout *gistSplit(Relation r, Page page, IndexTuple *itup, extern SplitPageLayout *gistSplit(Relation r, Page page, IndexTuple *itup,
int len, GISTSTATE *giststate); int len, GISTSTATE *giststate);
/* gistxlog.c */ /* gistxlog.c */
extern XLogRecPtr gistXLogPageDelete(Buffer buffer, extern XLogRecPtr gistXLogPageDelete(Buffer buffer,
@ -453,7 +453,7 @@ extern XLogRecPtr gistXLogDelete(Buffer buffer, OffsetNumber *todelete,
Relation heaprel); Relation heaprel);
extern XLogRecPtr gistXLogSplit(bool page_is_leaf, extern XLogRecPtr gistXLogSplit(bool page_is_leaf,
SplitedPageLayout *dist, SplitPageLayout *dist,
BlockNumber origrlink, GistNSN orignsn, BlockNumber origrlink, GistNSN orignsn,
Buffer leftchildbuf, bool markfollowright); Buffer leftchildbuf, bool markfollowright);

View File

@ -69,7 +69,7 @@ typedef struct gistxlogPageSplit
{ {
BlockNumber origrlink; /* rightlink of the page before split */ BlockNumber origrlink; /* rightlink of the page before split */
GistNSN orignsn; /* NSN of the page before split */ GistNSN orignsn; /* NSN of the page before split */
bool origleaf; /* was splitted page a leaf page? */ bool origleaf; /* was split page a leaf page? */
uint16 npage; /* # of pages in the split */ uint16 npage; /* # of pages in the split */
bool markfollowright; /* set F_FOLLOW_RIGHT flags */ bool markfollowright; /* set F_FOLLOW_RIGHT flags */

View File

@ -2634,10 +2634,10 @@ SpecialJoinInfo
SpinDelayStatus SpinDelayStatus
SplitInterval SplitInterval
SplitLR SplitLR
SplitPageLayout
SplitPoint SplitPoint
SplitTextOutputData SplitTextOutputData
SplitVar SplitVar
SplitedPageLayout
StackElem StackElem
StartDataPtrType StartDataPtrType
StartLOPtrType StartLOPtrType