Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dc10387

Browse files
author
Neil Conway
committed
Fix some typos in comments.
1 parent f49baa7 commit dc10387

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 tree descibed by stack
266+
* Insert value (stored in GinBtree) to tree described by stack
267267
*/
268268
void
269269
ginInsertValue(GinBtree btree, GinBtreeStack *stack)
@@ -316,7 +316,7 @@ ginInsertValue(GinBtree btree, GinBtreeStack *stack)
316316
Page newlpage;
317317

318318
/*
319-
* newlpage is a pointer to memory page, it does'nt assosiates
319+
* newlpage is a pointer to memory page, it doesn'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-
* page correctly choosen and searching value SHOULD be on page
72+
* Find correct PostingItem in non-leaf page. It supposed that page
73+
* correctly chosen and searching value SHOULD be on page
7474
*/
7575
static BlockNumber
7676
dataLocateItem(GinBtree btree, GinBtreeStack *stack)
@@ -107,7 +107,7 @@ dataLocateItem(GinBtree btree, GinBtreeStack *stack)
107107
if (mid == maxoff)
108108

109109
/*
110-
* Right infinity, page already correctly choosen with a help of
110+
* Right infinity, page already correctly chosen 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 be corrrectly choosen.
140+
* Page should be correctly chosen.
141141
* Returns true if value found on page.
142142
*/
143143
static bool
@@ -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
static OffsetNumber
@@ -236,7 +236,7 @@ dataFindChildPtr(GinBtree btree, Page page, BlockNumber blkno, OffsetNumber stor
236236
}
237237

238238
/*
239-
* retunrs blkno of lefmost child
239+
* returns blkno of leftmost child
240240
*/
241241
static BlockNumber
242242
dataGetLeftMostPage(GinBtree btree, Page page)
@@ -252,7 +252,7 @@ dataGetLeftMostPage(GinBtree btree, Page page)
252252
}
253253

254254
/*
255-
* add ItemPointer or PostingItem to page. data should points to
255+
* add ItemPointer or PostingItem to page. data should point 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 as usial
24+
* - itup->t_info & INDEX_SIZE_MASK contains size of tuple as usual
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-
* - After usial part of tuple there is a posting list
31+
* - After usual 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 as usial
34+
* - itup->t_info & INDEX_SIZE_MASK contains size of tuple as usual
3535
* - ItemPointerGetBlockNumber(&itup->t_tid) contains block number of
3636
* root of posting tree
37-
* - ItemPointerGetOffsetNumber(&itup->t_tid) contains magick number GIN_TREE_POSTING
37+
* - ItemPointerGetOffsetNumber(&itup->t_tid) contains magic number GIN_TREE_POSTING
3838
*/
3939
IndexTuple
4040
GinFormTuple(GinState *ginstate, Datum key, ItemPointerData *ipd, uint32 nipd)

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
else if (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 is resposible to
37+
* if its needed. In case of *cleaned!=NULL caller is responsible to
3838
* enough space. *cleaned and items may point to the same
39-
* memory addres.
39+
* memory address.
4040
*/
4141

4242
static uint32
@@ -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 desire futher processing */
198+
/* if root is a leaf page, we don't desire further 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 into temprorary one.
462+
* then page is copied into temporary one.
463463
*/
464464
static Page
465465
ginVacuumEntryPage(GinVacuumState *gvs, Buffer buffer, BlockNumber *roots, uint32 *nroot)
@@ -489,7 +489,7 @@ ginVacuumEntryPage(GinVacuumState *gvs, Buffer buffer, BlockNumber *roots, uint3
489489
else if (GinGetNPosting(itup) > 0)
490490
{
491491
/*
492-
* if we already create temrorary page, we will make changes in
492+
* if we already create temporary 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 create temprorary page in memory
511+
* On first difference we create temporary 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 it becouse all this pages are new (ie not
364-
* linked in tree or masked by temp page
363+
* fill page, we can do it because all these pages are new
364+
* (ie not linked 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 and remmeber it for parent */
374+
/* set up ItemPointer and remember 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 the begining of closest parent;
649+
* returns from the beginning 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 following protoypes are declared static so as not to conflict
55+
* The following prototypes 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)