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

Commit8548ddc

Browse files
committed
Fix inconsistencies and typos in the tree, take 9
This addresses more issues with code comments, variable names andunreferenced variables.Author: Alexander LakhinDiscussion:https://postgr.es/m/7ab243e0-116d-3e44-d120-76b3df7abefd@gmail.com
1 parent7550619 commit8548ddc

File tree

80 files changed

+94
-121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+94
-121
lines changed

‎contrib/pg_standby/pg_standby.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ char *triggerPath;/* where to find the trigger file? */
5858
char*xlogFilePath;/* where we are going to restore to */
5959
char*nextWALFileName;/* the file we need to get from archive */
6060
char*restartWALFileName;/* the file from which we can restart restore */
61-
char*priorWALFileName;/* the file we need to get from archive */
6261
charWALFilePath[MAXPGPATH*2];/* the file path including archive */
6362
charrestoreCommand[MAXPGPATH];/* run this to restore */
6463
charexclusiveCleanupFileName[MAXFNAMELEN];/* the file we need to get

‎contrib/pgcrypto/pgp-pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ pgp_pub_decrypt_text(PG_FUNCTION_ARGS)
761761
*/
762762

763763
/*
764-
* Helper function forpgp_armor. Converts arrays of keys and values into
764+
* Helper function forpg_armor. Converts arrays of keys and values into
765765
* plain C arrays, and checks that they don't contain invalid characters.
766766
*/
767767
staticint

‎contrib/pgcrypto/px.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ void *px_realloc(void *p, size_t s);
5050
voidpx_free(void*p);
5151
#endif
5252

53-
/* max len of 'type' parms */
54-
#definePX_MAX_NAMELEN128
55-
5653
/* max salt returned */
5754
#definePX_MAX_SALT_LEN128
5855

‎contrib/pgcrypto/sha1.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,6 @@ static uint32 _K[] = {0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6};
5959
#defineBCOUNT(ctxt->c.b64[0] / 8)
6060
#defineW(n)(ctxt->m.b32[(n)])
6161

62-
#definePUTBYTE(x) \
63-
do { \
64-
ctxt->m.b8[(COUNT % 64)] = (x);\
65-
COUNT++;\
66-
COUNT %= 64;\
67-
ctxt->c.b64[0] += 8;\
68-
if (COUNT % 64 == 0)\
69-
sha1_step(ctxt);\
70-
} while (0)
71-
7262
#definePUTPAD(x) \
7363
do { \
7464
ctxt->m.b8[(COUNT % 64)] = (x);\

‎contrib/postgres_fdw/postgres_fdw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ estimate_path_cost_size(PlannerInfo *root,
27942794

27952795
/*
27962796
* Back into an estimate of the number of retrieved rows. Just in
2797-
* case this is nuts, clamp to at mostnrow.
2797+
* case this is nuts, clamp to at mostnrows.
27982798
*/
27992799
retrieved_rows=clamp_row_est(rows /fpinfo->local_conds_sel);
28002800
retrieved_rows=Min(retrieved_rows,nrows);

‎contrib/sepgsql/sepgsql.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ extern void sepgsql_avc_init(void);
271271
*/
272272
externchar*sepgsql_get_client_label(void);
273273
externvoidsepgsql_init_client_label(void);
274-
externchar*sepgsql_get_label(OidrelOid,OidobjOid,int32subId);
274+
externchar*sepgsql_get_label(OidclassId,OidobjectId,int32subId);
275275

276276
externvoidsepgsql_object_relabel(constObjectAddress*object,
277277
constchar*seclabel);

‎contrib/test_decoding/test_decoding.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
PG_MODULE_MAGIC;
2626

27-
/* These must be available topg_dlsym() */
27+
/* These must be available todlsym() */
2828
externvoid_PG_init(void);
2929
externvoid_PG_output_plugin_init(OutputPluginCallbacks*cb);
3030

‎doc/src/sgml/libpq.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5509,7 +5509,7 @@ int PQendcopy(PGconn *conn);
55095509
It should either be issued when the last string has been sent
55105510
to the server using <xref linkend="libpq-PQputline"/> or when the
55115511
last string has been received from the server using
5512-
<function>PGgetline</function>. It must be issued or the server
5512+
<function>PQgetline</function>. It must be issued or the server
55135513
will get <quote>out of sync</quote> with the client. Upon return
55145514
from this function, the server is ready to receive the next SQL
55155515
command. The return value is 0 on successful completion,

‎doc/src/sgml/ref/set_role.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ RESET ROLE
7070
effectively drops all the privileges assigned directly to the session user
7171
and to the other roles it is a member of, leaving only the privileges
7272
available to the named role. On the other hand, if the session user role
73-
has the <literal>NOINHERITS</literal> attribute, <command>SET ROLE</command> drops the
73+
has the <literal>NOINHERIT</literal> attribute, <command>SET ROLE</command> drops the
7474
privileges assigned directly to the session user and instead acquires the
7575
privileges available to the named role.
7676
</para>

‎doc/src/sgml/sslinfo.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ countryName (alias C)
185185
localityName (alias L)
186186
stateOrProvinceName (alias ST)
187187
organizationName (alias O)
188-
organizationUnitName (alias OU)
188+
organizationalUnitName (alias OU)
189189
title
190190
description
191191
initials

‎src/backend/access/gin/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ is stored in the higher bits. That requires 43 bits in total, which
270270
conveniently fits in at most 6 bytes.
271271

272272
A compressed posting list is passed around and stored on disk in a
273-
PackedPostingList struct. The first item in the list is stored uncompressed
273+
GinPostingList struct. The first item in the list is stored uncompressed
274274
as a regular ItemPointerData, followed by the length of the list in bytes,
275275
followed by the packed items.
276276

‎src/backend/access/gin/ginbtree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ ginPlaceToPage(GinBtree btree, GinBtreeStack *stack,
650650
}
651651
else
652652
{
653-
elog(ERROR,"invalid return code from GINplaceToPage method: %d",rc);
653+
elog(ERROR,"invalid return code from GINbeginPlaceToPage method: %d",rc);
654654
result= false;/* keep compiler quiet */
655655
}
656656

‎src/backend/access/gist/gistget.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ gistkillitems(IndexScanDesc scan)
7474

7575
/*
7676
* Mark all killedItems as dead. We need no additional recheck, because,
77-
* if page was modified,pageLSN must have changed.
77+
* if page was modified,curPageLSN must have changed.
7878
*/
7979
for (i=0;i<so->numKilled;i++)
8080
{
@@ -379,11 +379,11 @@ gistScanPage(IndexScanDesc scan, GISTSearchItem *pageItem, double *myDistances,
379379

380380
/*
381381
* Check if the page was deleted after we saw the downlink. There's
382-
* nothing of interest on a deleted page. Note that we must do this
383-
*afterchecking the NSN for concurrent splits! It's possible that
384-
*the pageoriginally contained some tuples that are visible to us,
385-
*but was splitso that all the visible tuples were moved to another
386-
*page, and thenthis page was deleted.
382+
* nothing of interest on a deleted page. Note that we must do this after
383+
* checking the NSN for concurrent splits! It's possible that the page
384+
* originally contained some tuples that are visible to us, but was split
385+
* so that all the visible tuples were moved to another page, and then
386+
* this page was deleted.
387387
*/
388388
if (GistPageIsDeleted(page))
389389
{

‎src/backend/access/hash/hash_xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ hash_xlog_squeeze_page(XLogReaderState *record)
706706

707707
/*
708708
* if the page on which are adding tuples is a page previous to freed
709-
* overflow page, then update itsnextblno.
709+
* overflow page, then update itsnextblkno.
710710
*/
711711
if (xldata->is_prev_bucket_same_wrt)
712712
{

‎src/backend/access/hash/hashinsert.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ _hash_doinsert(Relation rel, IndexTuple itup, Relation heapRel)
257257
*_hash_pgaddtup() -- add a tuple to a particular page in the index.
258258
*
259259
* This routine adds the tuple to the page as requested; it does not write out
260-
* the page. It is an error to callpgaddtup()without pin and write lock on
261-
* the target buffer.
260+
* the page. It is an error to callthis functionwithout pin and write lock
261+
*onthe target buffer.
262262
*
263263
* Returns the offset number at which the tuple was inserted. This function
264264
* is responsible for preserving the condition that tuples in a hash index

‎src/backend/access/heap/heapam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static HeapTuple heap_prepare_insert(Relation relation, HeapTuple tup,
7474
TransactionIdxid,CommandIdcid,intoptions);
7575
staticXLogRecPtrlog_heap_update(Relationreln,Bufferoldbuf,
7676
Buffernewbuf,HeapTupleoldtup,
77-
HeapTuplenewtup,HeapTupleold_key_tup,
77+
HeapTuplenewtup,HeapTupleold_key_tuple,
7878
boolall_visible_cleared,boolnew_all_visible_cleared);
7979
staticBitmapset*HeapDetermineModifiedColumns(Relationrelation,
8080
Bitmapset*interesting_cols,

‎src/backend/access/heap/visibilitymap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124

125125
/* prototypes for internal routines */
126126
staticBuffervm_readbuf(Relationrel,BlockNumberblkno,boolextend);
127-
staticvoidvm_extend(Relationrel,BlockNumbernvmblocks);
127+
staticvoidvm_extend(Relationrel,BlockNumbervm_nblocks);
128128

129129

130130
/*

‎src/backend/access/nbtree/nbtsort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ _bt_blwritepage(BTWriteState *wstate, Page page, BlockNumber blkno)
657657
/* XLOG stuff */
658658
if (wstate->btws_use_wal)
659659
{
660-
/* We use theheap NEWPAGE record type for this */
660+
/* We use theXLOG_FPI record type for this */
661661
log_newpage(&wstate->index->rd_node,MAIN_FORKNUM,blkno,page, true);
662662
}
663663

‎src/backend/access/transam/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ void XLogResetInsertion(void)
530530
construction workspace. This is only needed if you have already called
531531
XLogBeginInsert(), but decide to not insert the record after all.
532532

533-
void XLogEnsureRecordSpace(int max_block_id, intnrdatas)
533+
void XLogEnsureRecordSpace(int max_block_id, intndatas)
534534

535535
Normally, the WAL record construction buffers have the following limits:
536536

‎src/backend/access/transam/clog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static intZeroCLOGPage(int pageno, bool writeXlog);
9292
staticboolCLOGPagePrecedes(intpage1,intpage2);
9393
staticvoidWriteZeroPageXlogRec(intpageno);
9494
staticvoidWriteTruncateXlogRec(intpageno,TransactionIdoldestXact,
95-
OidoldestXidDb);
95+
OidoldestXactDb);
9696
staticvoidTransactionIdSetPageStatus(TransactionIdxid,intnsubxids,
9797
TransactionId*subxids,XidStatusstatus,
9898
XLogRecPtrlsn,intpageno,

‎src/backend/access/transam/multixact.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ typedef struct MultiXactStateData
282282
}MultiXactStateData;
283283

284284
/*
285-
* Last element ofOldestMemberMXactID and OldestVisibleMXactId arrays.
285+
* Last element ofOldestMemberMXactId and OldestVisibleMXactId arrays.
286286
* Valid elements are (1..MaxOldestSlot); element 0 is never used.
287287
*/
288288
#defineMaxOldestSlot(MaxBackends + max_prepared_xacts)

‎src/backend/catalog/aclchk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4114,7 +4114,7 @@ pg_largeobject_aclmask_snapshot(Oid lobj_oid, Oid roleid,
41144114
returnmask;
41154115

41164116
/*
4117-
* Get the largeobject's ACL frompg_language_metadata
4117+
* Get the largeobject's ACL frompg_largeobject_metadata
41184118
*/
41194119
pg_lo_meta=table_open(LargeObjectMetadataRelationId,
41204120
AccessShareLock);

‎src/backend/catalog/information_schema.sql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ CREATE FUNCTION _pg_expandarray(IN anyarray, OUT x anyelement, OUT n int)
4848
pg_catalog.array_upper($1,1),
4949
1) as g(s)';
5050

51-
CREATEFUNCTION_pg_keysequal(smallint[],smallint[]) RETURNSboolean
52-
LANGUAGE sql IMMUTABLE PARALLEL SAFE-- intentionally not STRICT, to allow inlining
53-
AS'select $1 operator(pg_catalog.<@) $2 and $2 operator(pg_catalog.<@) $1';
54-
5551
/* Given an index's OID and an underlying-table column number, return the
5652
* column's position in the index (NULL if not there)*/
5753
CREATEFUNCTION_pg_index_position(oid,smallint) RETURNSint

‎src/backend/catalog/objectaddress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ static const ObjectPropertyType ObjectProperty[] =
530530

531531
/*
532532
* This struct maps the string object types as returned by
533-
* getObjectTypeDescription intoObjType enum values. Note that some enum
533+
* getObjectTypeDescription intoObjectType enum values. Note that some enum
534534
* values can be obtained by different names, and that some string object types
535535
* do not have corresponding values in the output enum. The user of this map
536536
* must be careful to test for invalid values being returned.

‎src/backend/commands/copy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ typedef struct CopyStateData
176176
* Working state for COPY FROM
177177
*/
178178
AttrNumbernum_defaults;
179-
FmgrInfooid_in_function;
180179
FmgrInfo*in_functions;/* array of input functions for each attrs */
181180
Oid*typioparams;/* array of element types for in_functions */
182181
int*defmap;/* array of default att numbers */

‎src/backend/commands/define.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ defGetBoolean(DefElem *def)
139139

140140
/*
141141
* The set of strings accepted here should match up with the
142-
* grammar'sopt_boolean production.
142+
* grammar'sopt_boolean_or_string production.
143143
*/
144144
if (pg_strcasecmp(sval,"true")==0)
145145
return true;

‎src/backend/commands/prepare.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ PrepareQuery(PrepareStmt *stmt, const char *queryString,
143143
}
144144

145145
/*
146-
* grammar only allowsOptimizableStmt, so this check should be redundant
146+
* grammar only allowsPreparableStmt, so this check should be redundant
147147
*/
148148
switch (query->commandType)
149149
{

‎src/backend/commands/vacuum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ get_all_vacuum_rels(int options)
847847
}
848848

849849
/*
850-
* vacuum_set_xid_limits() -- computeoldest-Xmin and freeze cutoff points
850+
* vacuum_set_xid_limits() -- computeoldestXmin and freeze cutoff points
851851
*
852852
* The output parameters are:
853853
* - oldestXmin is the cutoff value used to distinguish whether tuples are

‎src/backend/executor/nodeWindowAgg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ typedef struct WindowStatePerFuncData
9393
boolresulttypeByVal;
9494

9595
boolplain_agg;/* is it just a plain aggregate function? */
96-
intaggno;/* if so, index of itsPerAggData */
96+
intaggno;/* if so, index of itsWindowStatePerAggData */
9797

9898
WindowObjectwinobj;/* object used in window function API */
9999
}WindowStatePerFuncData;
@@ -142,7 +142,7 @@ typedef struct WindowStatePerAggData
142142
resulttypeByVal,
143143
transtypeByVal;
144144

145-
intwfuncno;/* index of associatedPerFuncData */
145+
intwfuncno;/* index of associatedWindowStatePerFuncData */
146146

147147
/* Context holding transition value and possibly other subsidiary data */
148148
MemoryContextaggcontext;/* may be private, or winstate->aggcontext */

‎src/backend/libpq/pqcomm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
*StreamClose- Close a client/backend connection
4545
*TouchSocketFiles- Protect socket files against /tmp cleaners
4646
*pq_init- initialize libpq at backend startup
47-
*pq_comm_reset- reset libpq during error recovery
48-
*pq_close- shutdown libpq at backend exit
47+
*socket_comm_reset- reset libpq during error recovery
48+
*socket_close- shutdown libpq at backend exit
4949
*
5050
* low-level I/O:
5151
*pq_getbytes- get a known number of bytes from connection

‎src/backend/nodes/params.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ EstimateParamListSpace(ParamListInfo paramLI)
144144
}
145145

146146
/*
147-
* Serialize aparamListInfo structure into caller-provided storage.
147+
* Serialize aParamListInfo structure into caller-provided storage.
148148
*
149149
* We write the number of parameters first, as a 4-byte integer, and then
150150
* write details for each parameter in turn. The details for each parameter

‎src/backend/nodes/tidbitmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ tbm_iterate(TBMIterator *iterator)
10211021
PagetableEntry*page;
10221022
intntuples;
10231023

1024-
/* InONE_PAGE state, we don't allocate an spages[] array */
1024+
/* InTBM_ONE_PAGE state, we don't allocate an spages[] array */
10251025
if (tbm->status==TBM_ONE_PAGE)
10261026
page=&tbm->entry1;
10271027
else

‎src/backend/optimizer/geqo/geqo_selection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ geqo_selection(PlannerInfo *root, Chromosome *momma, Chromosome *daddy,
9191
staticint
9292
linear_rand(PlannerInfo*root,intpool_size,doublebias)
9393
{
94-
doubleindex;/* index between 0 andpop_size */
94+
doubleindex;/* index between 0 andpool_size */
9595
doublemax= (double)pool_size;
9696

9797
/*

‎src/backend/optimizer/plan/planner.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4242,7 +4242,7 @@ consider_groupingsets_paths(PlannerInfo *root,
42424242
* 2) If there are no empty sets and only unsortable sets, then the
42434243
* rollups list will be empty (and thus l_start == NULL), and
42444244
* group_pathkeys will be NIL; we must ensure that the vacuously-true
4245-
*pathkeys_contain_in test doesn't cause us to crash.
4245+
*pathkeys_contained_in test doesn't cause us to crash.
42464246
*/
42474247
if (l_start!=NULL&&
42484248
pathkeys_contained_in(root->group_pathkeys,path->pathkeys))
@@ -5177,7 +5177,7 @@ make_group_input_target(PlannerInfo *root, PathTarget *final_target)
51775177
* a regular aggregation node would, plus any aggregates used in HAVING;
51785178
* except that the Aggref nodes should be marked as partial aggregates.
51795179
*
5180-
* In addition, we'd better emit any Vars andPlaceholderVars that are
5180+
* In addition, we'd better emit any Vars andPlaceHolderVars that are
51815181
* used outside of Aggrefs in the aggregation tlist and HAVING. (Presumably,
51825182
* these would be Vars that are grouped by or used in grouping expressions.)
51835183
*

‎src/backend/parser/parse_oper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ LookupOperName(ParseState *pstate, List *opername, Oid oprleft, Oid oprright,
134134
/*
135135
* LookupOperWithArgs
136136
*Like LookupOperName, but the argument types are specified by
137-
*aObjectWithArg node.
137+
*aObjectWithArgs node.
138138
*/
139139
Oid
140140
LookupOperWithArgs(ObjectWithArgs*oper,boolnoError)

‎src/backend/postmaster/pgstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6122,7 +6122,7 @@ pgstat_recv_resetcounter(PgStat_MsgResetcounter *msg, int len)
61226122
}
61236123

61246124
/* ----------
6125-
*pgstat_recv_resetshared() -
6125+
*pgstat_recv_resetsharedcounter() -
61266126
*
61276127
*Reset some shared statistics of the cluster.
61286128
* ----------

‎src/backend/regex/regcomp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ struct vars
288288
#defineNWBDRY'W'/* non-word-boundary constraint */
289289
#defineSBEGIN'A'/* beginning of string (even if not BOL) */
290290
#defineSEND'Z'/* end of string (even if not EOL) */
291-
#definePREFER'P'/* length preference */
292291

293292
/* is an arc colored, and hence on a color chain? */
294293
#defineCOLORED(a) \

‎src/backend/replication/logical/reorderbuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ ReorderBufferCopySnap(ReorderBuffer *rb, Snapshot orig_snap,
13811381
snap->subxip[i++]=txn->xid;
13821382

13831383
/*
1384-
*nsubxcnt isn't decreased when subtransactions abort, so count manually.
1384+
*subxcnt isn't decreased when subtransactions abort, so count manually.
13851385
* Since it's an upper boundary it is safe to use it for the allocation
13861386
* above.
13871387
*/

‎src/backend/storage/ipc/procarray.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ CreateSharedProcArray(void)
265265
&found);
266266
}
267267

268-
/* Register and initialize fields of ProcLWLockTranche */
269268
LWLockRegisterTranche(LWTRANCHE_PROC,"proc");
270269
}
271270

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp