mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
pgindent run of recent SSI changes. Also, remove an unnecessary #include.
Kevin Grittner
This commit is contained in:
parent
758bd2a433
commit
cb94db91b2
@ -29,7 +29,6 @@
|
||||
#include "storage/indexfsm.h"
|
||||
#include "storage/ipc.h"
|
||||
#include "storage/lmgr.h"
|
||||
#include "storage/predicate.h"
|
||||
#include "storage/smgr.h"
|
||||
#include "tcop/tcopprot.h"
|
||||
#include "utils/memutils.h"
|
||||
|
@ -849,8 +849,8 @@ _bt_first(IndexScanDesc scan, ScanDirection dir)
|
||||
if (!BufferIsValid(buf))
|
||||
{
|
||||
/*
|
||||
* We only get here if the index is completely empty.
|
||||
* Lock relation because nothing finer to lock exists.
|
||||
* We only get here if the index is completely empty. Lock relation
|
||||
* because nothing finer to lock exists.
|
||||
*/
|
||||
PredicateLockRelation(rel, scan->xs_snapshot);
|
||||
return false;
|
||||
|
@ -483,10 +483,9 @@ SerializationNeededForRead(Relation relation, Snapshot snapshot)
|
||||
* MySerializableXact, so that subsequent calls to this function can exit
|
||||
* quickly.
|
||||
*
|
||||
* A transaction is flagged as RO_SAFE if all concurrent R/W
|
||||
* transactions commit without having conflicts out to an earlier
|
||||
* snapshot, thus ensuring that no conflicts are possible for this
|
||||
* transaction.
|
||||
* A transaction is flagged as RO_SAFE if all concurrent R/W transactions
|
||||
* commit without having conflicts out to an earlier snapshot, thus
|
||||
* ensuring that no conflicts are possible for this transaction.
|
||||
*/
|
||||
if (SxactIsROSafe(MySerializableXact))
|
||||
{
|
||||
|
@ -132,8 +132,8 @@ typedef struct PredXactListData
|
||||
/*
|
||||
* These global variables are maintained when registering and cleaning up
|
||||
* serializable transactions. They must be global across all backends,
|
||||
* but are not needed outside the predicate.c source file. Protected
|
||||
* by SerializableXactHashLock.
|
||||
* but are not needed outside the predicate.c source file. Protected by
|
||||
* SerializableXactHashLock.
|
||||
*/
|
||||
TransactionId SxactGlobalXmin; /* global xmin for active serializable
|
||||
* transactions */
|
||||
|
Loading…
Reference in New Issue
Block a user