Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitffabb56

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 parent8de5ca1 commitffabb56

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 toerrmsg_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 toerrormsg_buf, it'll be returned to the
950+
*callerof XLogReadRecord() after all successfully decoded records from
951+
*theread queue.
952952
*/
953953

954954
returnXLREAD_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 fromxs_ctup.t_self.
203+
* to get the TID fromxs_heaptid.
204204
*/
205205
IndexScanDescscan= ((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
staticpgstat_entry_ref_hash_hash*pgStatEntryRefHash=NULL;
83-
staticintpgStatSharedRefAge=0;/* cache age ofpgStatShmLookupCache */
83+
staticintpgStatSharedRefAge=0;/* cache age ofpgStatLocal.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 cachedpgStatShmLookupCache.
890+
* holders to run garbage collection of their cachedpgStatLocal.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 usingNoMovementScanDirectionScans. For convenience, we use the
21-
*values-1 and 1 for backward and forward scans. This allows us to perform
22-
*a fewmathematical tricks such as what is done in ScanDirectionCombine.
20+
* invoked usingNoMovementScanDirection. 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
typedefenumScanDirection
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-
*decodenext. Calling XLogBeginRead() sets NextRecPtr and EndRecPtr to
229-
*therequested 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
XLogRecPtrDecodeRecPtr;/* start of last record decoded */
232232
XLogRecPtrNextRecPtr;/* 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)

[8]ページ先頭

©2009-2025 Movatter.jp