Skip to content

Commit ffabb56

Browse files
committed
Fix a series of typos and outdated references
Author: Alexander Lakhin <exclusion@gmail.com> Discussion: https://postgr.es/m/c1d63754-cb85-2d8a-8409-bde2c4d2d04b@gmail.com
1 parent 8de5ca1 commit ffabb56

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

src/backend/access/transam/xlogreader.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -946,9 +946,9 @@ XLogDecodeNextRecord(XLogReaderState *state, bool nonblocking)
946946
XLogReaderInvalReadState(state);
947947

948948
/*
949-
* If an error was written to errmsg_buf, it'll be returned to the caller
950-
* of XLogReadRecord() after all successfully decoded records from the
951-
* read queue.
949+
* If an error was written to errormsg_buf, it'll be returned to the
950+
* caller of XLogReadRecord() after all successfully decoded records from
951+
* the read queue.
952952
*/
953953

954954
return XLREAD_FAIL;

src/backend/executor/execCurrent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ execCurrentOf(CurrentOfExpr *cexpr,
200200
/*
201201
* For IndexOnlyScan, the tuple stored in ss_ScanTupleSlot may be
202202
* a virtual tuple that does not have the ctid column, so we have
203-
* to get the TID from xs_ctup.t_self.
203+
* to get the TID from xs_heaptid.
204204
*/
205205
IndexScanDesc scan = ((IndexOnlyScanState *) scanstate)->ioss_ScanDesc;
206206

src/backend/utils/activity/pgstat_shmem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static const dshash_parameters dsh_params = {
8080
* compares to their copy of pgStatSharedRefAge on a regular basis.
8181
*/
8282
static pgstat_entry_ref_hash_hash *pgStatEntryRefHash = NULL;
83-
static int pgStatSharedRefAge = 0; /* cache age of pgStatShmLookupCache */
83+
static int pgStatSharedRefAge = 0; /* cache age of pgStatLocal.shmem */
8484

8585
/*
8686
* Memory contexts containing the pgStatEntryRefHash table and the
@@ -887,7 +887,7 @@ pgstat_drop_database_and_contents(Oid dboid)
887887

888888
/*
889889
* If some of the stats data could not be freed, signal the reference
890-
* holders to run garbage collection of their cached pgStatShmLookupCache.
890+
* holders to run garbage collection of their cached pgStatLocal.shmem.
891891
*/
892892
if (not_freed_count > 0)
893893
pgstat_request_entry_refs_gc();

src/include/access/sdir.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
/*
1919
* Defines the direction for scanning a table or an index. Scans are never
20-
* invoked using NoMovementScanDirectionScans. For convenience, we use the
21-
* values -1 and 1 for backward and forward scans. This allows us to perform
22-
* a few mathematical tricks such as what is done in ScanDirectionCombine.
20+
* invoked using NoMovementScanDirection. For convenience, we use the values
21+
* -1 and 1 for backward and forward scans. This allows us to perform a few
22+
* mathematical tricks such as what is done in ScanDirectionCombine.
2323
*/
2424
typedef enum ScanDirection
2525
{

src/include/access/xlogreader.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ struct XLogReaderState
224224
* should not be accessed directly.
225225
* ----------------------------------------
226226
* Start and end point of the last record read and decoded by
227-
* XLogReadRecordInternal(). NextRecPtr is also used as the position to
228-
* decode next. Calling XLogBeginRead() sets NextRecPtr and EndRecPtr to
229-
* the requested starting position.
227+
* XLogReadRecord(). NextRecPtr is also used as the position to decode
228+
* next. Calling XLogBeginRead() sets NextRecPtr and EndRecPtr to the
229+
* requested starting position.
230230
*/
231231
XLogRecPtr DecodeRecPtr; /* start of last record decoded */
232232
XLogRecPtr NextRecPtr; /* end+1 of last record decoded */

src/test/modules/worker_spi/worker_spi.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ worker_spi_main(Datum main_arg)
174174
worker_spi_role, flags);
175175

176176
/*
177-
* Disable parallel query for workers started with BYPASS_ALLOWCONN or
178-
* BGWORKER_BYPASS_ALLOWCONN so as these don't attempt connections using a
179-
* database or a role that may not allow that.
177+
* Disable parallel query for workers started with
178+
* BGWORKER_BYPASS_ALLOWCONN or BGWORKER_BYPASS_ROLELOGINCHECK so as these
179+
* don't attempt connections using a database or a role that may not allow
180+
* that.
180181
*/
181182
if ((flags & (BGWORKER_BYPASS_ALLOWCONN | BGWORKER_BYPASS_ROLELOGINCHECK)))
182183
SetConfigOption("max_parallel_workers_per_gather", "0",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy