Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc10387

Browse files
author
Neil Conway
committed
Fix some typos in comments.
1 parentf49baa7 commitdc10387

File tree

8 files changed

+37
-37
lines changed

8 files changed

+37
-37
lines changed

‎src/backend/access/gin/ginbtree.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
*$PostgreSQL: pgsql/src/backend/access/gin/ginbtree.c,v 1.5 2006/10/04 00:29:47 momjian Exp $
11+
*$PostgreSQL: pgsql/src/backend/access/gin/ginbtree.c,v 1.6 2006/11/12 06:55:53 neilc Exp $
1212
*-------------------------------------------------------------------------
1313
*/
1414

@@ -38,7 +38,7 @@ ginTraverseLock(Buffer buffer, bool searchMode)
3838
/* But root can become non-leaf during relock */
3939
if (!GinPageIsLeaf(page))
4040
{
41-
/*resore old lock type (very rare) */
41+
/*restore old lock type (very rare) */
4242
LockBuffer(buffer,GIN_UNLOCK);
4343
LockBuffer(buffer,GIN_SHARE);
4444
}
@@ -263,7 +263,7 @@ findParents(GinBtree btree, GinBtreeStack *stack,
263263
}
264264

265265
/*
266-
* Insert value (stored in GinBtree) to treedescibed by stack
266+
* Insert value (stored in GinBtree) to treedescribed by stack
267267
*/
268268
void
269269
ginInsertValue(GinBtreebtree,GinBtreeStack*stack)
@@ -316,7 +316,7 @@ ginInsertValue(GinBtree btree, GinBtreeStack *stack)
316316
Pagenewlpage;
317317

318318
/*
319-
* newlpage is a pointer to memory page, itdoes'nt assosiates
319+
* newlpage is a pointer to memory page, itdoesn't associate
320320
* with buffer, stack->buffer shoud be untouched
321321
*/
322322
newlpage=btree->splitPage(btree,stack->buffer,rbuffer,stack->off,&rdata);

‎src/backend/access/gin/gindatapage.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
*$PostgreSQL: pgsql/src/backend/access/gin/gindatapage.c,v 1.4 2006/10/04 00:29:47 momjian Exp $
11+
*$PostgreSQL: pgsql/src/backend/access/gin/gindatapage.c,v 1.5 2006/11/12 06:55:53 neilc Exp $
1212
*-------------------------------------------------------------------------
1313
*/
1414

@@ -69,8 +69,8 @@ dataIsMoveRight(GinBtree btree, Page page)
6969
}
7070

7171
/*
72-
* Find correct PostingItem in non-leaf page. It supposed that
73-
*pagecorrectlychoosen and searching value SHOULD be on page
72+
* Find correct PostingItem in non-leaf page. It supposed that page
73+
* correctlychosen and searching value SHOULD be on page
7474
*/
7575
staticBlockNumber
7676
dataLocateItem(GinBtreebtree,GinBtreeStack*stack)
@@ -107,7 +107,7 @@ dataLocateItem(GinBtree btree, GinBtreeStack *stack)
107107
if (mid==maxoff)
108108

109109
/*
110-
* Right infinity, page already correctlychoosen with a help of
110+
* Right infinity, page already correctlychosen with a help of
111111
* dataIsMoveRight
112112
*/
113113
result=-1;
@@ -137,7 +137,7 @@ dataLocateItem(GinBtree btree, GinBtreeStack *stack)
137137

138138
/*
139139
* Searches correct position for value on leaf page.
140-
* Page should becorrrectly choosen.
140+
* Page should becorrectly chosen.
141141
* Returns true if value found on page.
142142
*/
143143
staticbool
@@ -190,7 +190,7 @@ dataLocateLeafItem(GinBtree btree, GinBtreeStack *stack)
190190
}
191191

192192
/*
193-
* Finds links to blkno on non-leaf page,retuns
193+
* Finds links to blkno on non-leaf page,returns
194194
* offset of PostingItem
195195
*/
196196
staticOffsetNumber
@@ -236,7 +236,7 @@ dataFindChildPtr(GinBtree btree, Page page, BlockNumber blkno, OffsetNumber stor
236236
}
237237

238238
/*
239-
*retunrs blkno oflefmost child
239+
*returns blkno ofleftmost child
240240
*/
241241
staticBlockNumber
242242
dataGetLeftMostPage(GinBtreebtree,Pagepage)
@@ -252,7 +252,7 @@ dataGetLeftMostPage(GinBtree btree, Page page)
252252
}
253253

254254
/*
255-
* add ItemPointer or PostingItem to page. data shouldpoints to
255+
* add ItemPointer or PostingItem to page. data shouldpoint to
256256
* correct value! depending on leaf or non-leaf page
257257
*/
258258
void

‎src/backend/access/gin/ginentrypage.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
*$PostgreSQL: pgsql/src/backend/access/gin/ginentrypage.c,v 1.4 2006/10/04 00:29:47 momjian Exp $
11+
*$PostgreSQL: pgsql/src/backend/access/gin/ginentrypage.c,v 1.5 2006/11/12 06:55:53 neilc Exp $
1212
*-------------------------------------------------------------------------
1313
*/
1414

@@ -21,20 +21,20 @@
2121
* non-traditional layout. Tuple may contain posting list or
2222
* root blocknumber of posting tree. Macros GinIsPostingTre: (itup) / GinSetPostingTree(itup, blkno)
2323
* 1) Posting list
24-
*- itup->t_info & INDEX_SIZE_MASK contains size of tuple asusial
24+
*- itup->t_info & INDEX_SIZE_MASK contains size of tuple asusual
2525
*- ItemPointerGetBlockNumber(&itup->t_tid) contains original
2626
* size of tuple (without posting list).
2727
* Macroses: GinGetOrigSizePosting(itup) / GinSetOrigSizePosting(itup,n)
2828
*- ItemPointerGetOffsetNumber(&itup->t_tid) contains number
2929
* of elements in posting list (number of heap itempointer)
3030
* Macroses: GinGetNPosting(itup) / GinSetNPosting(itup,n)
31-
*- Afterusial part of tuple there is a posting list
31+
*- Afterusual part of tuple there is a posting list
3232
* Macros: GinGetPosting(itup)
3333
* 2) Posting tree
34-
*- itup->t_info & INDEX_SIZE_MASK contains size of tuple asusial
34+
*- itup->t_info & INDEX_SIZE_MASK contains size of tuple asusual
3535
*- ItemPointerGetBlockNumber(&itup->t_tid) contains block number of
3636
* root of posting tree
37-
*- ItemPointerGetOffsetNumber(&itup->t_tid) containsmagick number GIN_TREE_POSTING
37+
*- ItemPointerGetOffsetNumber(&itup->t_tid) containsmagic number GIN_TREE_POSTING
3838
*/
3939
IndexTuple
4040
GinFormTuple(GinState*ginstate,Datumkey,ItemPointerData*ipd,uint32nipd)

‎src/backend/access/gin/ginget.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
*$PostgreSQL: pgsql/src/backend/access/gin/ginget.c,v 1.3 2006/10/04 00:29:47 momjian Exp $
11+
*$PostgreSQL: pgsql/src/backend/access/gin/ginget.c,v 1.4 2006/11/12 06:55:53 neilc Exp $
1212
*-------------------------------------------------------------------------
1313
*/
1414

@@ -389,7 +389,7 @@ scanGetItem(IndexScanDesc scan, ItemPointerData *item)
389389
*item=key->curItem;
390390
}
391391
else
392-
return FALSE;/*finshed one of keys */
392+
return FALSE;/*finished one of keys */
393393
}
394394

395395
for (i=1;i <=so->nkeys;i++)
@@ -405,7 +405,7 @@ scanGetItem(IndexScanDesc scan, ItemPointerData *item)
405405
elseif (cmp>0)
406406
{
407407
if (keyGetItem(scan->indexRelation,&so->ginstate,so->tempCtx,key)== TRUE)
408-
return FALSE;/*finshed one of keys */
408+
return FALSE;/*finished one of keys */
409409
}
410410
else
411411
{/* returns to begin */

‎src/backend/access/gin/ginvacuum.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
*$PostgreSQL: pgsql/src/backend/access/gin/ginvacuum.c,v 1.7 2006/10/04 00:29:48 momjian Exp $
11+
*$PostgreSQL: pgsql/src/backend/access/gin/ginvacuum.c,v 1.8 2006/11/12 06:55:53 neilc Exp $
1212
*-------------------------------------------------------------------------
1313
*/
1414

@@ -34,9 +34,9 @@ typedef struct
3434
/*
3535
* Cleans array of ItemPointer (removes dead pointers)
3636
* Results are always stored in *cleaned, which will be allocated
37-
* if its needed. In case of *cleaned!=NULL caller isresposible to
37+
* if its needed. In case of *cleaned!=NULL caller isresponsible to
3838
* enough space. *cleaned and items may point to the same
39-
* memoryaddres.
39+
* memoryaddress.
4040
*/
4141

4242
staticuint32
@@ -195,7 +195,7 @@ ginVacuumPostingTreeLeaves(GinVacuumState *gvs, BlockNumber blkno, bool isRoot,
195195
MarkBufferDirty(buffer);
196196
END_CRIT_SECTION();
197197

198-
/* if root is a leaf page, we don't desirefuther processing */
198+
/* if root is a leaf page, we don't desirefurther processing */
199199
if (!isRoot&&GinPageGetOpaque(page)->maxoff<FirstOffsetNumber)
200200
hasVoidPage= TRUE;
201201
}
@@ -459,7 +459,7 @@ ginVacuumPostingTree(GinVacuumState *gvs, BlockNumber rootBlkno)
459459
/*
460460
* returns modified page or NULL if page isn't modified.
461461
* Function works with original page until first change is occured,
462-
* then page is copied intotemprorary one.
462+
* then page is copied intotemporary one.
463463
*/
464464
staticPage
465465
ginVacuumEntryPage(GinVacuumState*gvs,Bufferbuffer,BlockNumber*roots,uint32*nroot)
@@ -489,7 +489,7 @@ ginVacuumEntryPage(GinVacuumState *gvs, Buffer buffer, BlockNumber *roots, uint3
489489
elseif (GinGetNPosting(itup)>0)
490490
{
491491
/*
492-
* if we already createtemrorary page, we will make changes in
492+
* if we already createtemporary page, we will make changes in
493493
* place
494494
*/
495495
ItemPointerData*cleaned= (tmppage==origpage) ?NULL :GinGetPosting(itup);
@@ -508,7 +508,7 @@ ginVacuumEntryPage(GinVacuumState *gvs, Buffer buffer, BlockNumber *roots, uint3
508508
if (tmppage==origpage)
509509
{
510510
/*
511-
* On first difference we createtemprorary page in memory
511+
* On first difference we createtemporary page in memory
512512
* and copies content in to it.
513513
*/
514514
tmppage=GinPageGetCopyPage(origpage);

‎src/backend/access/gist/gist.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.143 2006/10/04 00:29:48 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.144 2006/11/12 06:55:53 neilc Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -360,8 +360,8 @@ gistplacetopage(GISTInsertState *state, GISTSTATE *giststate)
360360
ptr->block.blkno=BufferGetBlockNumber(ptr->buffer);
361361

362362
/*
363-
* fill page, we can do itbecouse allthis pages are new (ie not
364-
* linked in tree or masked by temp page
363+
* fill page, we can do itbecause allthese pages are new
364+
*(ie notlinked in tree or masked by temp page
365365
*/
366366
data= (char*) (ptr->list);
367367
for (i=0;i<ptr->block.num;i++)
@@ -371,7 +371,7 @@ gistplacetopage(GISTInsertState *state, GISTSTATE *giststate)
371371
data+=IndexTupleSize((IndexTuple)data);
372372
}
373373

374-
/* set up ItemPointer andremmeber it for parent */
374+
/* set up ItemPointer andremember it for parent */
375375
ItemPointerSetBlockNumber(&(ptr->itup->t_tid),ptr->block.blkno);
376376
state->itup[state->ituplen]=ptr->itup;
377377
state->ituplen++;
@@ -646,7 +646,7 @@ gistfindleaf(GISTInsertState *state, GISTSTATE *giststate)
646646
/*
647647
* Traverse the tree to find path from root page to specified "child" block.
648648
*
649-
* returns from thebegining of closest parent;
649+
* returns from thebeginning of closest parent;
650650
*
651651
* To prevent deadlocks, this should lock only one page simultaneously.
652652
*/
@@ -953,7 +953,7 @@ gistSplit(Relation r,
953953
for (i=0;i<v.splitVector.spl_nright;i++)
954954
rvectup[i]=itup[v.splitVector.spl_right[i]-1];
955955

956-
/*finalyze splitting (may need another split) */
956+
/*finalize splitting (may need another split) */
957957
if (!gistfitpage(rvectup,v.splitVector.spl_nright))
958958
{
959959
res=gistSplit(r,page,rvectup,v.splitVector.spl_nright,giststate);

‎src/backend/access/gist/gistget.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/gist/gistget.c,v 1.61 2006/10/04 00:29:48 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/gist/gistget.c,v 1.62 2006/11/12 06:55:53 neilc Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -243,7 +243,7 @@ gistnext(IndexScanDesc scan, ScanDirection dir, ItemPointer tids, int maxtids, b
243243
n=OffsetNumberNext(n);
244244
}
245245

246-
/*wonderfull, we can look at page */
246+
/*wonderful, we can look at page */
247247

248248
for (;;)
249249
{

‎src/backend/commands/comment.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (c) 1996-2006, PostgreSQL Global Development Group
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/commands/comment.c,v 1.92 2006/10/04 00:29:50 momjian Exp $
10+
* $PostgreSQL: pgsql/src/backend/commands/comment.c,v 1.93 2006/11/12 06:55:54 neilc Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -52,7 +52,7 @@
5252
/*
5353
* Static Function Prototypes --
5454
*
55-
* The followingprotoypes are declared static so as not to conflict
55+
* The followingprototypes are declared static so as not to conflict
5656
* with any other routines outside this module. These routines are
5757
* called by the public function CommentObject() routine to create
5858
* the appropriate comment for the specific object type.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp