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

Commitf4921e5

Browse files
committed
Attached is a patch that fixes some trivial typos and alignment. Please
apply.Alvaro Herrera
1 parentaf29187 commitf4921e5

File tree

10 files changed

+279
-53
lines changed

10 files changed

+279
-53
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.160 2004/01/09 21:08:46 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.161 2004/01/26 22:51:55 momjian Exp $
1212
*
1313
* NOTES
1414
*Transaction aborts can now occur two ways:
@@ -87,7 +87,7 @@
8787
*
8888
*Support for transaction blocks is provided via the functions:
8989
*
90-
*StartTransactionBlock
90+
*BeginTransactionBlock
9191
*CommitTransactionBlock
9292
*AbortTransactionBlock
9393
*
@@ -108,7 +108,7 @@
108108
*
109109
*/StartTransactionCommand();
110110
*1) /ProcessUtility();<< begin
111-
* \StartTransactionBlock();
111+
* \BeginTransactionBlock();
112112
*\CommitTransactionCommand();
113113
*
114114
*/StartTransactionCommand();
@@ -127,7 +127,7 @@
127127
*The point of this example is to demonstrate the need for
128128
*StartTransactionCommand() and CommitTransactionCommand() to
129129
*be state smart -- they should do nothing in between the calls
130-
*toStartTransactionBlock() and EndTransactionBlock() and
130+
*toBeginTransactionBlock() and EndTransactionBlock() and
131131
*outside these calls they need to do normal start/commit
132132
*processing.
133133
*
@@ -399,7 +399,7 @@ CommandIdIsCurrentCommandId(CommandId cid)
399399
{
400400
TransactionStates=CurrentTransactionState;
401401

402-
return (cid==s->commandId) ? true : false;
402+
return (cid==s->commandId);
403403
}
404404

405405

@@ -860,7 +860,7 @@ StartTransaction(void)
860860
AtStart_Locks();
861861

862862
/*
863-
* Tell the trigger managertowe're starting a transaction
863+
* Tell the trigger manager we're starting a transaction
864864
*/
865865
DeferredTriggerBeginXact();
866866

‎src/backend/postmaster/pgstat.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*Copyright (c) 2001-2003, PostgreSQL Global Development Group
1515
*
16-
*$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.53 2004/01/11 03:49:31 momjian Exp $
16+
*$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.54 2004/01/26 22:51:55 momjian Exp $
1717
* ----------
1818
*/
1919
#include"postgres.h"
@@ -147,7 +147,7 @@ static void pgstat_recv_resetcounter(PgStat_MsgResetcounter *msg, int len);
147147
#definepiperead(a,b,c)read(a,b,c)
148148
#definepipewrite(a,b,c)write(a,b,c)
149149
#else
150-
/* pgpipe() is in /src/port */
150+
externintpgpipe(inthandles[2]);/* pgpipe() is in /src/port */
151151
#definepiperead(a,b,c)recv(a,b,c,0)
152152
#definepipewrite(a,b,c)send(a,b,c,0)
153153
#endif
@@ -322,7 +322,7 @@ pgstat_init(void)
322322
/*
323323
* Create the pipe that controls the statistics collector shutdown
324324
*/
325-
if (pipe(pgStatPmPipe)<0)
325+
if (pgpipe(pgStatPmPipe)<0)
326326
{
327327
ereport(LOG,
328328
(errcode_for_socket_access(),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp