mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Remove unneeded dash blocks around function start comments.
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.142 2003/03/10 22:28:18 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.143 2003/03/14 22:40:31 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* Transaction aborts can now occur two ways:
|
* Transaction aborts can now occur two ways:
|
||||||
@ -197,7 +197,8 @@ static TransactionStateData CurrentTransactionStateData = {
|
|||||||
0, /* scan command id */
|
0, /* scan command id */
|
||||||
0x0, /* start time */
|
0x0, /* start time */
|
||||||
TRANS_DEFAULT, /* transaction state */
|
TRANS_DEFAULT, /* transaction state */
|
||||||
TBLOCK_DEFAULT /* transaction block state of client queries */
|
TBLOCK_DEFAULT /* transaction block state from
|
||||||
|
the client perspective */
|
||||||
};
|
};
|
||||||
|
|
||||||
TransactionState CurrentTransactionState = &CurrentTransactionStateData;
|
TransactionState CurrentTransactionState = &CurrentTransactionStateData;
|
||||||
@ -259,12 +260,11 @@ SetTransactionFlushEnabled(bool state)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* IsTransactionState
|
* IsTransactionState
|
||||||
*
|
*
|
||||||
* This returns true if we are currently running a query
|
* This returns true if we are currently running a query
|
||||||
* within an executing transaction.
|
* within an executing transaction.
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
IsTransactionState(void)
|
IsTransactionState(void)
|
||||||
@ -291,12 +291,11 @@ IsTransactionState(void)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* IsAbortedTransactionBlockState
|
* IsAbortedTransactionBlockState
|
||||||
*
|
*
|
||||||
* This returns true if we are currently running a query
|
* This returns true if we are currently running a query
|
||||||
* within an aborted transaction block.
|
* within an aborted transaction block.
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
IsAbortedTransactionBlockState(void)
|
IsAbortedTransactionBlockState(void)
|
||||||
@ -310,9 +309,8 @@ IsAbortedTransactionBlockState(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* GetCurrentTransactionId
|
* GetCurrentTransactionId
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
TransactionId
|
TransactionId
|
||||||
GetCurrentTransactionId(void)
|
GetCurrentTransactionId(void)
|
||||||
@ -323,9 +321,8 @@ GetCurrentTransactionId(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* GetCurrentCommandId
|
* GetCurrentCommandId
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
CommandId
|
CommandId
|
||||||
GetCurrentCommandId(void)
|
GetCurrentCommandId(void)
|
||||||
@ -336,9 +333,8 @@ GetCurrentCommandId(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* GetCurrentTransactionStartTime
|
* GetCurrentTransactionStartTime
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
AbsoluteTime
|
AbsoluteTime
|
||||||
GetCurrentTransactionStartTime(void)
|
GetCurrentTransactionStartTime(void)
|
||||||
@ -349,9 +345,8 @@ GetCurrentTransactionStartTime(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* GetCurrentTransactionStartTimeUsec
|
* GetCurrentTransactionStartTimeUsec
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
AbsoluteTime
|
AbsoluteTime
|
||||||
GetCurrentTransactionStartTimeUsec(int *msec)
|
GetCurrentTransactionStartTimeUsec(int *msec)
|
||||||
@ -364,14 +359,13 @@ GetCurrentTransactionStartTimeUsec(int *msec)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* TransactionIdIsCurrentTransactionId
|
* TransactionIdIsCurrentTransactionId
|
||||||
*
|
*
|
||||||
* During bootstrap, we cheat and say "it's not my transaction ID" even though
|
* During bootstrap, we cheat and say "it's not my transaction ID" even though
|
||||||
* it is. Along with transam.c's cheat to say that the bootstrap XID is
|
* it is. Along with transam.c's cheat to say that the bootstrap XID is
|
||||||
* already committed, this causes the tqual.c routines to see previously
|
* already committed, this causes the tqual.c routines to see previously
|
||||||
* inserted tuples as committed, which is what we need during bootstrap.
|
* inserted tuples as committed, which is what we need during bootstrap.
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
TransactionIdIsCurrentTransactionId(TransactionId xid)
|
TransactionIdIsCurrentTransactionId(TransactionId xid)
|
||||||
@ -388,9 +382,8 @@ TransactionIdIsCurrentTransactionId(TransactionId xid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* CommandIdIsCurrentCommandId
|
* CommandIdIsCurrentCommandId
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
CommandIdIsCurrentCommandId(CommandId cid)
|
CommandIdIsCurrentCommandId(CommandId cid)
|
||||||
@ -401,9 +394,8 @@ CommandIdIsCurrentCommandId(CommandId cid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* CommandCounterIncrement
|
* CommandCounterIncrement
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CommandCounterIncrement(void)
|
CommandCounterIncrement(void)
|
||||||
@ -434,9 +426,8 @@ CommandCounterIncrement(void)
|
|||||||
* ----------------------------------------------------------------
|
* ----------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AtStart_Cache
|
* AtStart_Cache
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtStart_Cache(void)
|
AtStart_Cache(void)
|
||||||
@ -444,9 +435,8 @@ AtStart_Cache(void)
|
|||||||
AcceptInvalidationMessages();
|
AcceptInvalidationMessages();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AtStart_Locks
|
* AtStart_Locks
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtStart_Locks(void)
|
AtStart_Locks(void)
|
||||||
@ -459,9 +449,8 @@ AtStart_Locks(void)
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AtStart_Memory
|
* AtStart_Memory
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtStart_Memory(void)
|
AtStart_Memory(void)
|
||||||
@ -608,9 +597,8 @@ RecordTransactionCommit(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AtCommit_Cache
|
* AtCommit_Cache
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtCommit_Cache(void)
|
AtCommit_Cache(void)
|
||||||
@ -626,9 +614,8 @@ AtCommit_Cache(void)
|
|||||||
AtEOXactInvalidationMessages(true);
|
AtEOXactInvalidationMessages(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AtCommit_LocalCache
|
* AtCommit_LocalCache
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtCommit_LocalCache(void)
|
AtCommit_LocalCache(void)
|
||||||
@ -639,9 +626,8 @@ AtCommit_LocalCache(void)
|
|||||||
CommandEndInvalidationMessages(true);
|
CommandEndInvalidationMessages(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AtCommit_Locks
|
* AtCommit_Locks
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtCommit_Locks(void)
|
AtCommit_Locks(void)
|
||||||
@ -654,9 +640,8 @@ AtCommit_Locks(void)
|
|||||||
ProcReleaseLocks(true);
|
ProcReleaseLocks(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AtCommit_Memory
|
* AtCommit_Memory
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtCommit_Memory(void)
|
AtCommit_Memory(void)
|
||||||
@ -751,9 +736,8 @@ RecordTransactionAbort(void)
|
|||||||
MyProc->logRec.xrecoff = 0;
|
MyProc->logRec.xrecoff = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AtAbort_Cache
|
* AtAbort_Cache
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtAbort_Cache(void)
|
AtAbort_Cache(void)
|
||||||
@ -762,9 +746,8 @@ AtAbort_Cache(void)
|
|||||||
AtEOXactInvalidationMessages(false);
|
AtEOXactInvalidationMessages(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AtAbort_Locks
|
* AtAbort_Locks
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtAbort_Locks(void)
|
AtAbort_Locks(void)
|
||||||
@ -778,9 +761,8 @@ AtAbort_Locks(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AtAbort_Memory
|
* AtAbort_Memory
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtAbort_Memory(void)
|
AtAbort_Memory(void)
|
||||||
@ -811,9 +793,8 @@ AtAbort_Memory(void)
|
|||||||
* ----------------------------------------------------------------
|
* ----------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AtCleanup_Memory
|
* AtCleanup_Memory
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtCleanup_Memory(void)
|
AtCleanup_Memory(void)
|
||||||
@ -840,9 +821,8 @@ AtCleanup_Memory(void)
|
|||||||
* ----------------------------------------------------------------
|
* ----------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* StartTransaction
|
* StartTransaction
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
StartTransaction(void)
|
StartTransaction(void)
|
||||||
@ -905,9 +885,8 @@ StartTransaction(void)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* CommitTransaction
|
* CommitTransaction
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
CommitTransaction(void)
|
CommitTransaction(void)
|
||||||
@ -1025,9 +1004,8 @@ CommitTransaction(void)
|
|||||||
RESUME_INTERRUPTS();
|
RESUME_INTERRUPTS();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AbortTransaction
|
* AbortTransaction
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AbortTransaction(void)
|
AbortTransaction(void)
|
||||||
@ -1131,9 +1109,8 @@ AbortTransaction(void)
|
|||||||
RESUME_INTERRUPTS();
|
RESUME_INTERRUPTS();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* CleanupTransaction
|
* CleanupTransaction
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
CleanupTransaction(void)
|
CleanupTransaction(void)
|
||||||
@ -1158,12 +1135,11 @@ CleanupTransaction(void)
|
|||||||
s->state = TRANS_DEFAULT;
|
s->state = TRANS_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* StartTransactionCommand
|
* StartTransactionCommand
|
||||||
*
|
*
|
||||||
* preventChain, if true, forces autocommit behavior at the next
|
* preventChain, if true, forces autocommit behavior at the next
|
||||||
* CommitTransactionCommand call.
|
* CommitTransactionCommand call.
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
StartTransactionCommand(bool preventChain)
|
StartTransactionCommand(bool preventChain)
|
||||||
@ -1251,11 +1227,10 @@ StartTransactionCommand(bool preventChain)
|
|||||||
MemoryContextSwitchTo(TransactionCommandContext);
|
MemoryContextSwitchTo(TransactionCommandContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* CommitTransactionCommand
|
* CommitTransactionCommand
|
||||||
*
|
*
|
||||||
* forceCommit = true forces autocommit behavior even when autocommit is off.
|
* forceCommit = true forces autocommit behavior even when autocommit is off.
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CommitTransactionCommand(bool forceCommit)
|
CommitTransactionCommand(bool forceCommit)
|
||||||
@ -1350,9 +1325,8 @@ CommitTransactionCommand(bool forceCommit)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AbortCurrentTransaction
|
* AbortCurrentTransaction
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
AbortCurrentTransaction(void)
|
AbortCurrentTransaction(void)
|
||||||
@ -1427,7 +1401,7 @@ AbortCurrentTransaction(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* PreventTransactionChain
|
* PreventTransactionChain
|
||||||
*
|
*
|
||||||
* This routine is to be called by statements that must not run inside
|
* This routine is to be called by statements that must not run inside
|
||||||
@ -1444,7 +1418,6 @@ AbortCurrentTransaction(void)
|
|||||||
* stmtNode: pointer to parameter block for statement; this is used in
|
* stmtNode: pointer to parameter block for statement; this is used in
|
||||||
* a very klugy way to determine whether we are inside a function.
|
* a very klugy way to determine whether we are inside a function.
|
||||||
* stmtType: statement type name for error messages.
|
* stmtType: statement type name for error messages.
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
PreventTransactionChain(void *stmtNode, const char *stmtType)
|
PreventTransactionChain(void *stmtNode, const char *stmtType)
|
||||||
@ -1480,7 +1453,7 @@ PreventTransactionChain(void *stmtNode, const char *stmtType)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* RequireTransactionChain
|
* RequireTransactionChain
|
||||||
*
|
*
|
||||||
* This routine is to be called by statements that must run inside
|
* This routine is to be called by statements that must run inside
|
||||||
@ -1496,7 +1469,6 @@ PreventTransactionChain(void *stmtNode, const char *stmtType)
|
|||||||
* stmtNode: pointer to parameter block for statement; this is used in
|
* stmtNode: pointer to parameter block for statement; this is used in
|
||||||
* a very klugy way to determine whether we are inside a function.
|
* a very klugy way to determine whether we are inside a function.
|
||||||
* stmtType: statement type name for error messages.
|
* stmtType: statement type name for error messages.
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
RequireTransactionChain(void *stmtNode, const char *stmtType)
|
RequireTransactionChain(void *stmtNode, const char *stmtType)
|
||||||
@ -1529,9 +1501,8 @@ RequireTransactionChain(void *stmtNode, const char *stmtType)
|
|||||||
* transaction block support
|
* transaction block support
|
||||||
* ----------------------------------------------------------------
|
* ----------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
/* --------------------------------
|
/*
|
||||||
* BeginTransactionBlock
|
* BeginTransactionBlock
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
BeginTransactionBlock(void)
|
BeginTransactionBlock(void)
|
||||||
@ -1563,9 +1534,8 @@ BeginTransactionBlock(void)
|
|||||||
s->blockState = TBLOCK_INPROGRESS;
|
s->blockState = TBLOCK_INPROGRESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* EndTransactionBlock
|
* EndTransactionBlock
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
EndTransactionBlock(void)
|
EndTransactionBlock(void)
|
||||||
@ -1611,9 +1581,8 @@ EndTransactionBlock(void)
|
|||||||
s->blockState = TBLOCK_ENDABORT;
|
s->blockState = TBLOCK_ENDABORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AbortTransactionBlock
|
* AbortTransactionBlock
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
#ifdef NOT_USED
|
#ifdef NOT_USED
|
||||||
static void
|
static void
|
||||||
@ -1649,9 +1618,8 @@ AbortTransactionBlock(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* UserAbortTransactionBlock
|
* UserAbortTransactionBlock
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
UserAbortTransactionBlock(void)
|
UserAbortTransactionBlock(void)
|
||||||
@ -1695,13 +1663,12 @@ UserAbortTransactionBlock(void)
|
|||||||
s->blockState = TBLOCK_ENDABORT;
|
s->blockState = TBLOCK_ENDABORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/*
|
||||||
* AbortOutOfAnyTransaction
|
* AbortOutOfAnyTransaction
|
||||||
*
|
*
|
||||||
* This routine is provided for error recovery purposes. It aborts any
|
* This routine is provided for error recovery purposes. It aborts any
|
||||||
* active transaction or transaction block, leaving the system in a known
|
* active transaction or transaction block, leaving the system in a known
|
||||||
* idle state.
|
* idle state.
|
||||||
* --------------------------------
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
AbortOutOfAnyTransaction(void)
|
AbortOutOfAnyTransaction(void)
|
||||||
|
Reference in New Issue
Block a user