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

Commit fa60fb6

Browse files
committed
Fix more typos in comments.
Patch by CharSyam, plus a few more I spotted with grep.
1 parent 4fc72cc commit fa60fb6

File tree

23 files changed

+29
-29
lines changed

23 files changed

+29
-29
lines changed

src/backend/access/brin/brin_pageops.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ brin_evacuate_page(Relation idxRel, BlockNumber pagesPerRange,
494494
* index item of size itemsz. If oldbuf is a valid buffer, it is also locked
495495
* (in an order determined to avoid deadlocks.)
496496
*
497-
* If there's no existing page with enough free space to accomodate the new
497+
* If there's no existing page with enough free space to accommodate the new
498498
* item, the relation is extended. If this happens, *extended is set to true.
499499
*
500500
* If we find that the old page is no longer a regular index page (because

src/backend/access/heap/README.tuplock

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ is implemented by storing locking information in the tuple header: a tuple is
99
marked as locked by setting the current transaction's XID as its XMAX, and
1010
setting additional infomask bits to distinguish this case from the more normal
1111
case of having deleted the tuple. When multiple transactions concurrently
12-
lock a tuple, a MultiXact is used; see below. This mechanism can accomodate
12+
lock a tuple, a MultiXact is used; see below. This mechanism can accommodate
1313
arbitrarily large numbers of tuples being locked simultaneously.
1414

1515
When it is necessary to wait for a tuple-level lock to be released, the basic

src/backend/access/transam/twophase.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ AtAbort_Twophase(void)
269269
* can be finished later, so just unlock it.
270270
*
271271
* If we abort during prepare, after having written the WAL record, we
272-
* might not have transfered all locks and other state to the prepared
272+
* might not have transferred all locks and other state to the prepared
273273
* transaction yet. Likewise, if we abort during commit or rollback,
274274
* after having written the WAL record, we might not have released
275275
* all the resources held by the transaction yet. In those cases, the

src/backend/access/transam/xact.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,7 @@ PrepareTransaction(void)
23172317
/*
23182318
* In normal commit-processing, this is all non-critical post-transaction
23192319
* cleanup. When the transaction is prepared, however, it's important that
2320-
* the locks and other per-backend resources are transfered to the
2320+
* the locks and other per-backend resources are transferred to the
23212321
* prepared transaction's PGPROC entry. Note that if an error is raised
23222322
* here, it's too late to abort the transaction. XXX: This probably should
23232323
* be in a critical section, to force a PANIC if any of this fails, but

src/backend/commands/event_trigger.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ EventTriggerSQLDrop(Node *parsetree)
883883
/*
884884
* Nothing to do if run list is empty. Note this shouldn't happen,
885885
* because if there are no sql_drop events, then objects-to-drop wouldn't
886-
* have been collected in the first place and we would have quitted above.
886+
* have been collected in the first place and we would have quit above.
887887
*/
888888
if (runlist == NIL)
889889
return;

src/backend/commands/vacuumlazy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
952952
heap_execute_freeze_tuple(htup, &frozen[i]);
953953
}
954954

955-
/* Now WAL-log freezing if neccessary */
955+
/* Now WAL-log freezing if necessary */
956956
if (RelationNeedsWAL(onerel))
957957
{
958958
XLogRecPtr recptr;

src/backend/postmaster/bgwriter.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ BackgroundWriterMain(void)
297297
* overall timeout handling but just assume we're going to get called
298298
* often enough even if hibernation mode is active. It's not that
299299
* important that log_snap_interval_ms is met strictly. To make sure
300-
* we're not waking the disk up unneccesarily on an idle system we
300+
* we're not waking the disk up unnecessarily on an idle system we
301301
* check whether there has been any WAL inserted since the last time
302302
* we've logged a running xacts.
303303
*

src/backend/replication/basebackup.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static char *statrelpath = NULL;
8585
/* The actual number of bytes, transfer of which may cause sleep. */
8686
static uint64 throttling_sample;
8787

88-
/* Amount of data already transfered but not yet throttled. */
88+
/* Amount of data already transferred but not yet throttled. */
8989
static int64 throttling_counter;
9090

9191
/* The minimum time required to transfer throttling_sample bytes. */
@@ -172,7 +172,7 @@ perform_base_backup(basebackup_options *opt, DIR *tblspcdir)
172172

173173
/*
174174
* The minimum amount of time for throttling_sample bytes to be
175-
* transfered.
175+
* transferred.
176176
*/
177177
elapsed_min_unit = USECS_PER_SEC / THROTTLING_FREQUENCY;
178178

src/backend/replication/logical/origin.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ pg_replication_origin_advance(PG_FUNCTION_ARGS)
13421342
/*
13431343
* Can't sensibly pass a local commit to be flushed at checkpoint - this
13441344
* xact hasn't committed yet. This is why this function should be used to
1345-
* set up the intial replication state, but not for replay.
1345+
* set up the initial replication state, but not for replay.
13461346
*/
13471347
replorigin_advance(node, remote_commit, InvalidXLogRecPtr,
13481348
true /* go backward */, true /* wal log */);

src/backend/replication/logical/reorderbuffer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ typedef struct ReorderBufferDiskChange
143143
* without hitting disk in OLTP workloads, while starting to spool to disk in
144144
* other workloads reasonably fast.
145145
*
146-
* At some point in the future it probaly makes sense to have a more elaborate
146+
* At some point in the future it probably makes sense to have a more elaborate
147147
* resource management here, but it's not entirely clear what that would look
148148
* like.
149149
*/
@@ -1704,7 +1704,7 @@ ReorderBufferForget(ReorderBuffer *rb, TransactionId xid, XLogRecPtr lsn)
17041704
txn->final_lsn = lsn;
17051705

17061706
/*
1707-
* Proccess cache invalidation messages if there are any. Even if we're
1707+
* Process cache invalidation messages if there are any. Even if we're
17081708
* not interested in the transaction's contents, it could have manipulated
17091709
* the catalog and we need to update the caches according to that.
17101710
*/

src/backend/replication/logical/snapbuild.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ SnapBuildDistributeNewCatalogSnapshot(SnapBuild *builder, XLogRecPtr lsn)
770770
/*
771771
* Iterate through all toplevel transactions. This can include
772772
* subtransactions which we just don't yet know to be that, but that's
773-
* fine, they will just get an unneccesary snapshot queued.
773+
* fine, they will just get an unnecessary snapshot queued.
774774
*/
775775
dlist_foreach(txn_i, &builder->reorder->toplevel_by_lsn)
776776
{
@@ -1212,7 +1212,7 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn
12121212
* to CONSISTENT.
12131213
* NB: We need to search running.xip when seeing a transaction's end to
12141214
* make sure it's a toplevel transaction and it's been one of the
1215-
* intially running ones.
1215+
* initially running ones.
12161216
* Interestingly, in contrast to HS, this allows us not to care about
12171217
* subtransactions - and by extension suboverflowed xl_running_xacts -
12181218
* at all.
@@ -1657,7 +1657,7 @@ SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn)
16571657
* Make sure the snapshot had been stored safely to disk, that's normally
16581658
* cheap.
16591659
* Note that we do not need PANIC here, nobody will be able to use the
1660-
* slot without fsyncing, and saving it won't suceed without an fsync()
1660+
* slot without fsyncing, and saving it won't succeed without an fsync()
16611661
* either...
16621662
* ----
16631663
*/
@@ -1749,7 +1749,7 @@ SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn)
17491749

17501750
/*
17511751
* We are only interested in consistent snapshots for now, comparing
1752-
* whether one imcomplete snapshot is more "advanced" seems to be
1752+
* whether one incomplete snapshot is more "advanced" seems to be
17531753
* unnecessarily complex.
17541754
*/
17551755
if (ondisk.builder.state < SNAPBUILD_CONSISTENT)

src/backend/replication/slot.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ typedef struct ReplicationSlotOnDisk
7979
/* size of the part covered by the checksum */
8080
#define SnapBuildOnDiskChecksummedSize \
8181
sizeof(ReplicationSlotOnDisk) - SnapBuildOnDiskNotChecksummedSize
82-
/* size of the slot data that is version dependant */
82+
/* size of the slot data that is version dependent */
8383
#define ReplicationSlotOnDiskV2Size \
8484
sizeof(ReplicationSlotOnDisk) - ReplicationSlotOnDiskConstantSize
8585

src/backend/storage/buffer/bufmgr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2165,7 +2165,7 @@ CheckForBufferLeaks(void)
21652165
}
21662166
}
21672167

2168-
/* if neccessary search the hash */
2168+
/* if necessary search the hash */
21692169
if (PrivateRefCountOverflowed)
21702170
{
21712171
HASH_SEQ_STATUS hstat;

src/backend/storage/ipc/dsm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ dsm_cleanup_using_control_segment(dsm_handle old_control_handle)
225225
/*
226226
* Try to attach the segment. If this fails, it probably just means that
227227
* the operating system has been rebooted and the segment no longer
228-
* exists, or an unrelated proces has used the same shm ID. So just fall
228+
* exists, or an unrelated process has used the same shm ID. So just fall
229229
* out quietly.
230230
*/
231231
if (!dsm_impl_op(DSM_OP_ATTACH, old_control_handle, 0, &impl_private,

src/backend/storage/ipc/procarray.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ GetOldestSafeDecodingTransactionId(void)
20012001
/*
20022002
* If there's already a slot pegging the xmin horizon, we can start with
20032003
* that value, it's guaranteed to be safe since it's computed by this
2004-
* routine initally and has been enforced since.
2004+
* routine initially and has been enforced since.
20052005
*/
20062006
if (TransactionIdIsValid(procArray->replication_slot_catalog_xmin) &&
20072007
TransactionIdPrecedes(procArray->replication_slot_catalog_xmin,

src/backend/storage/ipc/shm_mq.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ shm_mq_inc_bytes_read(volatile shm_mq *mq, Size n)
10471047

10481048
/*
10491049
* Get the number of bytes written. The sender need not use this to access
1050-
* the count of bytes written, but the reciever must.
1050+
* the count of bytes written, but the receiver must.
10511051
*/
10521052
static uint64
10531053
shm_mq_get_bytes_written(volatile shm_mq *mq, bool *detached)

src/bin/pg_dump/pg_dump.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -15484,7 +15484,7 @@ dumpRule(Archive *fout, DumpOptions *dopt, RuleInfo *rinfo)
1548415484
* is able and expected to modify those tables after the extension has been
1548515485
* loaded. For these tables, we dump out only the data- the structure is
1548615486
* expected to be handled at CREATE EXTENSION time, including any indexes or
15487-
* foriegn keys, which brings us to-
15487+
* foreign keys, which brings us to-
1548815488
*
1548915489
* 3. Record FK dependencies between configuration tables.
1549015490
*

src/bin/pg_upgrade/pg_upgrade.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ setup(char *argv0, bool *live_check)
198198
* start, assume the server is running. If the pid file is left over
199199
* from a server crash, this also allows any committed transactions
200200
* stored in the WAL to be replayed so they are not lost, because WAL
201-
* files are not transfered from old to new servers.
201+
* files are not transferred from old to new servers.
202202
*/
203203
if (start_postmaster(&old_cluster, false))
204204
stop_postmaster(false);

src/bin/psql/print.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ print_aligned_text(const printTableContent *cont, FILE *fout)
749749
{
750750
/*
751751
* Optional optimized word wrap. Shrink columns with a high max/avg
752-
* ratio. Slighly bias against wider columns. (Increases chance a
752+
* ratio. Slightly bias against wider columns. (Increases chance a
753753
* narrow column will fit in its cell.) If available columns is
754754
* positive... and greater than the width of the unshrinkable column
755755
* headers

src/include/c.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ typedef NameData *Name;
982982
* To better support parallel installations of major PostgeSQL
983983
* versions as well as parallel installations of major library soname
984984
* versions, we mangle the gettext domain name by appending those
985-
* version numbers. The coding rule ought to be that whereever the
985+
* version numbers. The coding rule ought to be that wherever the
986986
* domain name is mentioned as a literal, it must be wrapped into
987987
* PG_TEXTDOMAIN(). The macros below do not work on non-literals; but
988988
* that is somewhat intentional because it avoids having to worry

src/include/utils/rel.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ typedef struct RelationData
8989
* survived into, or zero if not changed in the current transaction (or we
9090
* have forgotten changing it). rd_newRelfilenodeSubid can be forgotten
9191
* when a relation has multiple new relfilenodes within a single
92-
* transaction, with one of them occuring in a subsequently aborted
92+
* transaction, with one of them occurring in a subsequently aborted
9393
* subtransaction, e.g. BEGIN; TRUNCATE t; SAVEPOINT save; TRUNCATE t;
9494
* ROLLBACK TO save; -- rd_newRelfilenode is now forgotten
9595
*/

src/interfaces/libpq/fe-auth.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ pg_SSPI_continue(PGconn *conn)
300300

301301
if (conn->sspictx == NULL)
302302
{
303-
/* On first run, transfer retreived context handle */
303+
/* On first run, transfer retrieved context handle */
304304
conn->sspictx = malloc(sizeof(CtxtHandle));
305305
if (conn->sspictx == NULL)
306306
{
@@ -373,7 +373,7 @@ pg_SSPI_startup(PGconn *conn, int use_negotiate)
373373
conn->sspictx = NULL;
374374

375375
/*
376-
* Retreive credentials handle
376+
* Retrieve credentials handle
377377
*/
378378
conn->sspicred = malloc(sizeof(CredHandle));
379379
if (conn->sspicred == NULL)

src/tools/pgindent/pgindent

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ my $devnull = File::Spec->devnull;
1919
my $indent_opts =
2020
"-bad -bap -bc -bl -d0 -cdb -nce -nfc1 -di12 -i4 -l79 -lp -nip -npro -bbb";
2121

22-
# indent-dependant settings
22+
# indent-dependent settings
2323
my $extra_opts = "";
2424

2525
my ($typedefs_file, $typedef_str, $code_base, $excludes, $indent, $build);

0 commit comments

Comments
 (0)