1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

pgindent run of recent SSI changes. Also, remove an unnecessary #include.

Kevin Grittner
This commit is contained in:
Heikki Linnakangas
2011-06-16 16:16:34 +03:00
parent 9340e643e4
commit 9131bc772b
6 changed files with 15 additions and 17 deletions

View File

@ -29,7 +29,6 @@
#include "storage/indexfsm.h" #include "storage/indexfsm.h"
#include "storage/ipc.h" #include "storage/ipc.h"
#include "storage/lmgr.h" #include "storage/lmgr.h"
#include "storage/predicate.h"
#include "storage/smgr.h" #include "storage/smgr.h"
#include "tcop/tcopprot.h" #include "tcop/tcopprot.h"
#include "utils/memutils.h" #include "utils/memutils.h"

View File

@ -849,8 +849,8 @@ _bt_first(IndexScanDesc scan, ScanDirection dir)
if (!BufferIsValid(buf)) if (!BufferIsValid(buf))
{ {
/* /*
* We only get here if the index is completely empty. * We only get here if the index is completely empty. Lock relation
* Lock relation because nothing finer to lock exists. * because nothing finer to lock exists.
*/ */
PredicateLockRelation(rel, scan->xs_snapshot); PredicateLockRelation(rel, scan->xs_snapshot);
return false; return false;

View File

@ -483,10 +483,9 @@ SerializationNeededForRead(Relation relation, Snapshot snapshot)
* MySerializableXact, so that subsequent calls to this function can exit * MySerializableXact, so that subsequent calls to this function can exit
* quickly. * quickly.
* *
* A transaction is flagged as RO_SAFE if all concurrent R/W * A transaction is flagged as RO_SAFE if all concurrent R/W transactions
* transactions commit without having conflicts out to an earlier * commit without having conflicts out to an earlier snapshot, thus
* snapshot, thus ensuring that no conflicts are possible for this * ensuring that no conflicts are possible for this transaction.
* transaction.
*/ */
if (SxactIsROSafe(MySerializableXact)) if (SxactIsROSafe(MySerializableXact))
{ {

View File

@ -132,8 +132,8 @@ typedef struct PredXactListData
/* /*
* These global variables are maintained when registering and cleaning up * These global variables are maintained when registering and cleaning up
* serializable transactions. They must be global across all backends, * serializable transactions. They must be global across all backends,
* but are not needed outside the predicate.c source file. Protected * but are not needed outside the predicate.c source file. Protected by
* by SerializableXactHashLock. * SerializableXactHashLock.
*/ */
TransactionId SxactGlobalXmin; /* global xmin for active serializable TransactionId SxactGlobalXmin; /* global xmin for active serializable
* transactions */ * transactions */