Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6aab1f4

Browse files
committed
Fix various typos and grammar errors in comments.
Author: Dmitriy Olshevskiy Discussion: [email protected]
1 parent 9fe1d9a commit 6aab1f4

File tree

21 files changed

+25
-25
lines changed

21 files changed

+25
-25
lines changed

src/backend/access/brin/brin_tuple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ brin_free_tuple(BrinTuple *tuple)
304304
}
305305

306306
/*
307-
* Create an palloc'd copy of a BrinTuple.
307+
* Create a palloc'd copy of a BrinTuple.
308308
*/
309309
BrinTuple *
310310
brin_copy_tuple(BrinTuple *tuple, Size len)

src/backend/access/nbtree/nbtree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ typedef struct
4040
BTSpool *spool;
4141

4242
/*
43-
* spool2 is needed only when the index is an unique index. Dead tuples
43+
* spool2 is needed only when the index is a unique index. Dead tuples
4444
* are put into spool2 instead of spool in order to avoid uniqueness
4545
* check.
4646
*/

src/backend/access/transam/twophase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ AtAbort_Twophase(void)
291291
}
292292

293293
/*
294-
* This is called after we have finished transfering state to the prepared
294+
* This is called after we have finished transferring state to the prepared
295295
* PGXACT entry.
296296
*/
297297
void

src/backend/catalog/objectaddress.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ typedef struct
100100
AclObjectKind acl_kind; /* ACL_KIND_* of this object type */
101101
bool is_nsp_name_unique; /* can the nsp/name combination (or
102102
* name alone, if there's no
103-
* namespace) be considered an unique
103+
* namespace) be considered a unique
104104
* identifier for an object of this
105105
* class? */
106106
} ObjectPropertyType;
@@ -3241,7 +3241,7 @@ pg_identify_object(PG_FUNCTION_ARGS)
32413241

32423242
/*
32433243
* We only return the object name if it can be used (together with
3244-
* the schema name, if any) as an unique identifier.
3244+
* the schema name, if any) as a unique identifier.
32453245
*/
32463246
if (get_object_namensp_unique(address.classId))
32473247
{

src/backend/commands/indexcmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ ComputeIndexAttrs(IndexInfo *indexInfo,
10511051
*/
10521052

10531053
/*
1054-
* A expression using mutable functions is probably wrong,
1054+
* An expression using mutable functions is probably wrong,
10551055
* since if you aren't going to get the same result for the
10561056
* same data every time, it's not clear what the index entries
10571057
* mean at all.

src/backend/executor/nodeModifyTable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ ExecInsert(TupleTableSlot *slot,
304304
* inserting the record into the heap and all indexes.
305305
*
306306
* ExecWithCheckOptions will elog(ERROR) if a violation is found, so
307-
* the tuple will never be seen, if it violates the the WITH CHECK
307+
* the tuple will never be seen, if it violates the WITH CHECK
308308
* OPTION.
309309
*
310310
* ExecWithCheckOptions() will skip any WCOs which are not of

src/backend/postmaster/bgworker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ BackgroundWorkerShmemInit(void)
130130
/*
131131
* Copy contents of worker list into shared memory. Record the shared
132132
* memory slot assigned to each worker. This ensures a 1-to-1
133-
* correspondence betwen the postmaster's private list and the array
133+
* correspondence between the postmaster's private list and the array
134134
* in shared memory.
135135
*/
136136
slist_foreach(siter, &BackgroundWorkerList)

src/backend/replication/logical/snapbuild.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ SnapBuildSerialize(SnapBuild *builder, XLogRecPtr lsn)
15971597

15981598
/*
15991599
* We may overwrite the work from some other backend, but that's ok, our
1600-
* snapshot is valid as well, we'll just have done some superflous work.
1600+
* snapshot is valid as well, we'll just have done some superfluous work.
16011601
*/
16021602
if (rename(tmppath, path) != 0)
16031603
{

src/backend/storage/lmgr/lwlock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ LWLockDequeueSelf(LWLock *lock)
848848

849849
/*
850850
* Somebody else dequeued us and has or will wake us up. Deal with the
851-
* superflous absorption of a wakeup.
851+
* superfluous absorption of a wakeup.
852852
*/
853853

854854
/*
@@ -1183,7 +1183,7 @@ LWLockAcquireOrWait(LWLock *lock, LWLockMode mode)
11831183
{
11841184
/*
11851185
* Wait until awakened. Like in LWLockAcquire, be prepared for bogus
1186-
* wakups, because we share the semaphore with ProcWaitForSignal.
1186+
* wakeups, because we share the semaphore with ProcWaitForSignal.
11871187
*/
11881188
LOG_LWDEBUG("LWLockAcquireOrWait", lock, "waiting");
11891189

src/backend/utils/cache/inval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ RegisterRelcacheInvalidation(Oid dbId, Oid relId)
516516
/*
517517
* RegisterSnapshotInvalidation
518518
*
519-
* Register a invalidation event for MVCC scans against a given catalog.
519+
* Register an invalidation event for MVCC scans against a given catalog.
520520
* Only needed for catalogs that don't have catcaches.
521521
*/
522522
static void

0 commit comments

Comments
 (0)