mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Fix more typos in comments.
Patch by CharSyam, plus a few more I spotted with grep.
This commit is contained in:
@@ -85,7 +85,7 @@ static char *statrelpath = NULL;
|
||||
/* The actual number of bytes, transfer of which may cause sleep. */
|
||||
static uint64 throttling_sample;
|
||||
|
||||
/* Amount of data already transfered but not yet throttled. */
|
||||
/* Amount of data already transferred but not yet throttled. */
|
||||
static int64 throttling_counter;
|
||||
|
||||
/* The minimum time required to transfer throttling_sample bytes. */
|
||||
@@ -172,7 +172,7 @@ perform_base_backup(basebackup_options *opt, DIR *tblspcdir)
|
||||
|
||||
/*
|
||||
* The minimum amount of time for throttling_sample bytes to be
|
||||
* transfered.
|
||||
* transferred.
|
||||
*/
|
||||
elapsed_min_unit = USECS_PER_SEC / THROTTLING_FREQUENCY;
|
||||
|
||||
|
@@ -1342,7 +1342,7 @@ pg_replication_origin_advance(PG_FUNCTION_ARGS)
|
||||
/*
|
||||
* Can't sensibly pass a local commit to be flushed at checkpoint - this
|
||||
* xact hasn't committed yet. This is why this function should be used to
|
||||
* set up the intial replication state, but not for replay.
|
||||
* set up the initial replication state, but not for replay.
|
||||
*/
|
||||
replorigin_advance(node, remote_commit, InvalidXLogRecPtr,
|
||||
true /* go backward */, true /* wal log */);
|
||||
|
@@ -143,7 +143,7 @@ typedef struct ReorderBufferDiskChange
|
||||
* without hitting disk in OLTP workloads, while starting to spool to disk in
|
||||
* other workloads reasonably fast.
|
||||
*
|
||||
* At some point in the future it probaly makes sense to have a more elaborate
|
||||
* At some point in the future it probably makes sense to have a more elaborate
|
||||
* resource management here, but it's not entirely clear what that would look
|
||||
* like.
|
||||
*/
|
||||
@@ -1704,7 +1704,7 @@ ReorderBufferForget(ReorderBuffer *rb, TransactionId xid, XLogRecPtr lsn)
|
||||
txn->final_lsn = lsn;
|
||||
|
||||
/*
|
||||
* Proccess cache invalidation messages if there are any. Even if we're
|
||||
* Process cache invalidation messages if there are any. Even if we're
|
||||
* not interested in the transaction's contents, it could have manipulated
|
||||
* the catalog and we need to update the caches according to that.
|
||||
*/
|
||||
|
@@ -770,7 +770,7 @@ SnapBuildDistributeNewCatalogSnapshot(SnapBuild *builder, XLogRecPtr lsn)
|
||||
/*
|
||||
* Iterate through all toplevel transactions. This can include
|
||||
* subtransactions which we just don't yet know to be that, but that's
|
||||
* fine, they will just get an unneccesary snapshot queued.
|
||||
* fine, they will just get an unnecessary snapshot queued.
|
||||
*/
|
||||
dlist_foreach(txn_i, &builder->reorder->toplevel_by_lsn)
|
||||
{
|
||||
@@ -1212,7 +1212,7 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn
|
||||
* to CONSISTENT.
|
||||
* NB: We need to search running.xip when seeing a transaction's end to
|
||||
* make sure it's a toplevel transaction and it's been one of the
|
||||
* intially running ones.
|
||||
* initially running ones.
|
||||
* Interestingly, in contrast to HS, this allows us not to care about
|
||||
* subtransactions - and by extension suboverflowed xl_running_xacts -
|
||||
* at all.
|
||||
@@ -1657,7 +1657,7 @@ SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn)
|
||||
* Make sure the snapshot had been stored safely to disk, that's normally
|
||||
* cheap.
|
||||
* Note that we do not need PANIC here, nobody will be able to use the
|
||||
* slot without fsyncing, and saving it won't suceed without an fsync()
|
||||
* slot without fsyncing, and saving it won't succeed without an fsync()
|
||||
* either...
|
||||
* ----
|
||||
*/
|
||||
@@ -1749,7 +1749,7 @@ SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn)
|
||||
|
||||
/*
|
||||
* We are only interested in consistent snapshots for now, comparing
|
||||
* whether one imcomplete snapshot is more "advanced" seems to be
|
||||
* whether one incomplete snapshot is more "advanced" seems to be
|
||||
* unnecessarily complex.
|
||||
*/
|
||||
if (ondisk.builder.state < SNAPBUILD_CONSISTENT)
|
||||
|
@@ -79,7 +79,7 @@ typedef struct ReplicationSlotOnDisk
|
||||
/* size of the part covered by the checksum */
|
||||
#define SnapBuildOnDiskChecksummedSize \
|
||||
sizeof(ReplicationSlotOnDisk) - SnapBuildOnDiskNotChecksummedSize
|
||||
/* size of the slot data that is version dependant */
|
||||
/* size of the slot data that is version dependent */
|
||||
#define ReplicationSlotOnDiskV2Size \
|
||||
sizeof(ReplicationSlotOnDisk) - ReplicationSlotOnDiskConstantSize
|
||||
|
||||
|
Reference in New Issue
Block a user