mirror of
https://github.com/postgres/postgres.git
synced 2025-08-08 06:02:22 +03:00
pgindent run before PG 9.1 beta 1.
This commit is contained in:
@@ -193,7 +193,7 @@ ResolveRecoveryConflictWithVirtualXIDs(VirtualTransactionId *waitlist,
|
||||
return;
|
||||
|
||||
waitStart = GetCurrentTimestamp();
|
||||
new_status = NULL; /* we haven't changed the ps display */
|
||||
new_status = NULL; /* we haven't changed the ps display */
|
||||
|
||||
while (VirtualTransactionIdIsValid(*waitlist))
|
||||
{
|
||||
@@ -963,14 +963,14 @@ void
|
||||
LogAccessExclusiveLockPrepare(void)
|
||||
{
|
||||
/*
|
||||
* Ensure that a TransactionId has been assigned to this transaction,
|
||||
* for two reasons, both related to lock release on the standby.
|
||||
* First, we must assign an xid so that RecordTransactionCommit() and
|
||||
* Ensure that a TransactionId has been assigned to this transaction, for
|
||||
* two reasons, both related to lock release on the standby. First, we
|
||||
* must assign an xid so that RecordTransactionCommit() and
|
||||
* RecordTransactionAbort() do not optimise away the transaction
|
||||
* completion record which recovery relies upon to release locks. It's
|
||||
* a hack, but for a corner case not worth adding code for into the
|
||||
* main commit path. Second, must must assign an xid before the lock
|
||||
* is recorded in shared memory, otherwise a concurrently executing
|
||||
* completion record which recovery relies upon to release locks. It's a
|
||||
* hack, but for a corner case not worth adding code for into the main
|
||||
* commit path. Second, must must assign an xid before the lock is
|
||||
* recorded in shared memory, otherwise a concurrently executing
|
||||
* GetRunningTransactionLocks() might see a lock associated with an
|
||||
* InvalidTransactionId which we later assert cannot happen.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user