Skip to content

Commit f4921e5

Browse files
committed
Attached is a patch that fixes some trivial typos and alignment. Please
apply. Alvaro Herrera
1 parent af29187 commit f4921e5

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-
* to StartTransactionBlock() and EndTransactionBlock() and
130+
* to BeginTransactionBlock() 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
TransactionState s = 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 manager to we'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
#define piperead(a,b,c) read(a,b,c)
148148
#define pipewrite(a,b,c) write(a,b,c)
149149
#else
150-
/* pgpipe() is in /src/port */
150+
extern int pgpipe(int handles[2]); /* pgpipe() is in /src/port */
151151
#define piperead(a,b,c) recv(a,b,c,0)
152152
#define pipewrite(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)