mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Fix typos in comments.
Backpatch to all supported versions, where applicable, to make backpatching of future fixes go more smoothly. Josh Soref Discussion: https://www.postgresql.org/message-id/CACZqfqCf+5qRztLPgmmosr-B0Ye4srWzzw_mo4c_8_B_mtjmJQ@mail.gmail.com
This commit is contained in:
@@ -170,7 +170,7 @@ WaitForReplicationWorkerAttach(LogicalRepWorker *worker,
|
||||
|
||||
/*
|
||||
* Worker started and attached to our shmem. This check is safe
|
||||
* because only laucher ever starts the workers, so nobody can steal
|
||||
* because only launcher ever starts the workers, so nobody can steal
|
||||
* the worker slot.
|
||||
*/
|
||||
if (status == BGWH_STARTED && worker->proc)
|
||||
@@ -180,7 +180,7 @@ WaitForReplicationWorkerAttach(LogicalRepWorker *worker,
|
||||
return false;
|
||||
|
||||
/*
|
||||
* We need timeout because we generaly don't get notified via latch
|
||||
* We need timeout because we generally don't get notified via latch
|
||||
* about the worker attach.
|
||||
*/
|
||||
rc = WaitLatch(MyLatch,
|
||||
@@ -533,7 +533,7 @@ AtCommit_ApplyLauncher(void)
|
||||
/*
|
||||
* Request wakeup of the launcher on commit of the transaction.
|
||||
*
|
||||
* This is used to send launcher signal to stop sleeping and proccess the
|
||||
* This is used to send launcher signal to stop sleeping and process the
|
||||
* subscriptions when current transaction commits. Should be used when new
|
||||
* tuple was added to the pg_subscription catalog.
|
||||
*/
|
||||
@@ -638,7 +638,7 @@ ApplyLauncherMain(Datum main_arg)
|
||||
else
|
||||
{
|
||||
/*
|
||||
* The wait in previous cycle was interruped in less than
|
||||
* The wait in previous cycle was interrupted in less than
|
||||
* wal_retrieve_retry_interval since last worker was started,
|
||||
* this usually means crash of the worker, so we should retry
|
||||
* in wal_retrieve_retry_interval again.
|
||||
|
||||
@@ -1250,7 +1250,7 @@ pg_replication_origin_session_is_setup(PG_FUNCTION_ARGS)
|
||||
* Return the replication progress for origin setup in the current session.
|
||||
*
|
||||
* If 'flush' is set to true it is ensured that the returned value corresponds
|
||||
* to a local transaction that has been flushed. this is useful if asychronous
|
||||
* to a local transaction that has been flushed. this is useful if asynchronous
|
||||
* commits are used when replaying replicated transactions.
|
||||
*/
|
||||
Datum
|
||||
@@ -1336,7 +1336,7 @@ pg_replication_origin_advance(PG_FUNCTION_ARGS)
|
||||
* Return the replication progress for an individual replication origin.
|
||||
*
|
||||
* If 'flush' is set to true it is ensured that the returned value corresponds
|
||||
* to a local transaction that has been flushed. this is useful if asychronous
|
||||
* to a local transaction that has been flushed. this is useful if asynchronous
|
||||
* commits are used when replaying replicated transactions.
|
||||
*/
|
||||
Datum
|
||||
|
||||
@@ -539,7 +539,7 @@ logicalrep_write_attrs(StringInfo out, Relation rel)
|
||||
if (att->attisdropped)
|
||||
continue;
|
||||
|
||||
/* REPLICA IDENTITY FULL means all colums are sent as part of key. */
|
||||
/* REPLICA IDENTITY FULL means all columns are sent as part of key. */
|
||||
if (replidentfull ||
|
||||
bms_is_member(att->attnum - FirstLowInvalidHeapAttributeNumber,
|
||||
idattrs))
|
||||
|
||||
@@ -1714,7 +1714,7 @@ ReorderBufferCommit(ReorderBuffer *rb, TransactionId xid,
|
||||
*
|
||||
* NB: Transactions handled here have to have actively aborted (i.e. have
|
||||
* produced an abort record). Implicitly aborted transactions are handled via
|
||||
* ReorderBufferAbortOld(); transactions we're just not interesteded in, but
|
||||
* ReorderBufferAbortOld(); transactions we're just not interested in, but
|
||||
* which have committed are handled in ReorderBufferForget().
|
||||
*
|
||||
* This function purges this transaction and its contents from memory and
|
||||
@@ -1782,7 +1782,7 @@ ReorderBufferAbortOld(ReorderBuffer *rb, TransactionId oldestRunningXid)
|
||||
* toplevel xid.
|
||||
*
|
||||
* This is significantly different to ReorderBufferAbort() because
|
||||
* transactions that have committed need to be treated differenly from aborted
|
||||
* transactions that have committed need to be treated differently from aborted
|
||||
* ones since they may have modified the catalog.
|
||||
*
|
||||
* Note that this is only allowed to be called in the moment a transaction
|
||||
@@ -2660,7 +2660,7 @@ StartupReorderBuffer(void)
|
||||
|
||||
/*
|
||||
* ok, has to be a surviving logical slot, iterate and delete
|
||||
* everythign starting with xid-*
|
||||
* everything starting with xid-*
|
||||
*/
|
||||
sprintf(path, "pg_replslot/%s", logical_de->d_name);
|
||||
|
||||
|
||||
@@ -614,7 +614,7 @@ SnapBuildGetOrBuildSnapshot(SnapBuild *builder, TransactionId xid)
|
||||
if (builder->snapshot == NULL)
|
||||
{
|
||||
builder->snapshot = SnapBuildBuildSnapshot(builder, xid);
|
||||
/* inrease refcount for the snapshot builder */
|
||||
/* increase refcount for the snapshot builder */
|
||||
SnapBuildSnapIncRefcount(builder->snapshot);
|
||||
}
|
||||
|
||||
@@ -678,7 +678,7 @@ SnapBuildProcessChange(SnapBuild *builder, TransactionId xid, XLogRecPtr lsn)
|
||||
if (builder->snapshot == NULL)
|
||||
{
|
||||
builder->snapshot = SnapBuildBuildSnapshot(builder, xid);
|
||||
/* inrease refcount for the snapshot builder */
|
||||
/* increase refcount for the snapshot builder */
|
||||
SnapBuildSnapIncRefcount(builder->snapshot);
|
||||
}
|
||||
|
||||
@@ -911,7 +911,7 @@ SnapBuildEndTxn(SnapBuild *builder, XLogRecPtr lsn, TransactionId xid)
|
||||
{
|
||||
/*
|
||||
* None of the originally running transaction is running anymore,
|
||||
* so our incrementaly built snapshot now is consistent.
|
||||
* so our incrementally built snapshot now is consistent.
|
||||
*/
|
||||
ereport(LOG,
|
||||
(errmsg("logical decoding found consistent point at %X/%X",
|
||||
|
||||
@@ -327,7 +327,7 @@ slot_store_cstrings(TupleTableSlot *slot, LogicalRepRelMapEntry *rel,
|
||||
/*
|
||||
* Modify slot with user data provided as C strigs.
|
||||
* This is somewhat similar to heap_modify_tuple but also calls the type
|
||||
* input fuction on the user data as the input is the text representation
|
||||
* input function on the user data as the input is the text representation
|
||||
* of the types.
|
||||
*/
|
||||
static void
|
||||
|
||||
@@ -172,7 +172,7 @@ pgoutput_startup(LogicalDecodingContext * ctx, OutputPluginOptions *opt,
|
||||
&data->protocol_version,
|
||||
&data->publication_names);
|
||||
|
||||
/* Check if we support requested protol */
|
||||
/* Check if we support requested protocol */
|
||||
if (data->protocol_version != LOGICALREP_PROTO_VERSION_NUM)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
@@ -424,7 +424,7 @@ publication_invalidation_cb(Datum arg, int cacheid, uint32 hashvalue)
|
||||
/*
|
||||
* Initialize the relation schema sync cache for a decoding session.
|
||||
*
|
||||
* The hash table is destoyed at the end of a decoding session. While
|
||||
* The hash table is destroyed at the end of a decoding session. While
|
||||
* relcache invalidations still exist and will still be invoked, they
|
||||
* will just see the null hash table global and take no action.
|
||||
*/
|
||||
@@ -540,7 +540,7 @@ rel_sync_cache_relation_cb(Datum arg, Oid relid)
|
||||
|
||||
/*
|
||||
* We can get here if the plugin was used in SQL interface as the
|
||||
* RelSchemaSyncCache is detroyed when the decoding finishes, but there
|
||||
* RelSchemaSyncCache is destroyed when the decoding finishes, but there
|
||||
* is no way to unregister the relcache invalidation callback.
|
||||
*/
|
||||
if (RelationSyncCache == NULL)
|
||||
@@ -580,7 +580,7 @@ rel_sync_cache_publication_cb(Datum arg, int cacheid, uint32 hashvalue)
|
||||
|
||||
/*
|
||||
* We can get here if the plugin was used in SQL interface as the
|
||||
* RelSchemaSyncCache is detroyed when the decoding finishes, but there
|
||||
* RelSchemaSyncCache is destroyed when the decoding finishes, but there
|
||||
* is no way to unregister the relcache invalidation callback.
|
||||
*/
|
||||
if (RelationSyncCache == NULL)
|
||||
|
||||
Reference in New Issue
Block a user