Skip to content

Commit cb94db9

Browse files
committed
pgindent run of recent SSI changes. Also, remove an unnecessary #include.
Kevin Grittner
1 parent 758bd2a commit cb94db9

File tree

6 files changed

+15
-17
lines changed

6 files changed

+15
-17
lines changed

src/backend/access/nbtree/nbtree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include "storage/indexfsm.h"
3030
#include "storage/ipc.h"
3131
#include "storage/lmgr.h"
32-
#include "storage/predicate.h"
3332
#include "storage/smgr.h"
3433
#include "tcop/tcopprot.h"
3534
#include "utils/memutils.h"

src/backend/access/nbtree/nbtsearch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,8 @@ _bt_first(IndexScanDesc scan, ScanDirection dir)
849849
if (!BufferIsValid(buf))
850850
{
851851
/*
852-
* We only get here if the index is completely empty.
853-
* Lock relation because nothing finer to lock exists.
852+
* We only get here if the index is completely empty. Lock relation
853+
* because nothing finer to lock exists.
854854
*/
855855
PredicateLockRelation(rel, scan->xs_snapshot);
856856
return false;

src/backend/access/transam/twophase_rmgr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const TwoPhaseCallback twophase_recover_callbacks[TWOPHASE_RM_MAX_ID + 1] =
2626
NULL, /* END ID */
2727
lock_twophase_recover, /* Lock */
2828
NULL, /* pgstat */
29-
multixact_twophase_recover, /* MultiXact */
29+
multixact_twophase_recover, /* MultiXact */
3030
predicatelock_twophase_recover /* PredicateLock */
3131
};
3232

@@ -44,7 +44,7 @@ const TwoPhaseCallback twophase_postabort_callbacks[TWOPHASE_RM_MAX_ID + 1] =
4444
NULL, /* END ID */
4545
lock_twophase_postabort, /* Lock */
4646
pgstat_twophase_postabort, /* pgstat */
47-
multixact_twophase_postabort, /* MultiXact */
47+
multixact_twophase_postabort, /* MultiXact */
4848
NULL /* PredicateLock */
4949
};
5050

src/backend/storage/lmgr/predicate.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,9 @@ SerializationNeededForRead(Relation relation, Snapshot snapshot)
483483
* MySerializableXact, so that subsequent calls to this function can exit
484484
* quickly.
485485
*
486-
* A transaction is flagged as RO_SAFE if all concurrent R/W
487-
* transactions commit without having conflicts out to an earlier
488-
* snapshot, thus ensuring that no conflicts are possible for this
489-
* transaction.
486+
* A transaction is flagged as RO_SAFE if all concurrent R/W transactions
487+
* commit without having conflicts out to an earlier snapshot, thus
488+
* ensuring that no conflicts are possible for this transaction.
490489
*/
491490
if (SxactIsROSafe(MySerializableXact))
492491
{
@@ -498,7 +497,7 @@ SerializationNeededForRead(Relation relation, Snapshot snapshot)
498497
if (!PredicateLockingNeededForRelation(relation))
499498
return false;
500499

501-
return true; /* no excuse to skip predicate locking */
500+
return true; /* no excuse to skip predicate locking */
502501
}
503502

504503
/*
@@ -516,7 +515,7 @@ SerializationNeededForWrite(Relation relation)
516515
if (!PredicateLockingNeededForRelation(relation))
517516
return false;
518517

519-
return true; /* no excuse to skip predicate locking */
518+
return true; /* no excuse to skip predicate locking */
520519
}
521520

522521

src/include/storage/predicate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ extern void ReleasePredicateLocks(const bool isCommit);
5454

5555
/* conflict detection (may also trigger rollback) */
5656
extern void CheckForSerializableConflictOut(const bool valid, const Relation relation, const HeapTuple tuple,
57-
const Buffer buffer, const Snapshot snapshot);
57+
const Buffer buffer, const Snapshot snapshot);
5858
extern void CheckForSerializableConflictIn(const Relation relation, const HeapTuple tuple, const Buffer buffer);
5959
extern void CheckTableForSerializableConflictIn(const Relation relation);
6060

src/include/storage/predicate_internals.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ typedef struct SERIALIZABLEXACT
9090
int pid; /* pid of associated process */
9191
} SERIALIZABLEXACT;
9292

93-
#define SXACT_FLAG_COMMITTED 0x00000001 /* already committed */
94-
#define SXACT_FLAG_PREPARED 0x00000002 /* about to commit */
95-
#define SXACT_FLAG_DOOMED 0x00000004 /* will roll back */
93+
#define SXACT_FLAG_COMMITTED 0x00000001 /* already committed */
94+
#define SXACT_FLAG_PREPARED 0x00000002 /* about to commit */
95+
#define SXACT_FLAG_DOOMED 0x00000004 /* will roll back */
9696
/*
9797
* The following flag actually means that the flagged transaction has a
9898
* conflict out *to a transaction which committed ahead of it*. It's hard
@@ -132,8 +132,8 @@ typedef struct PredXactListData
132132
/*
133133
* These global variables are maintained when registering and cleaning up
134134
* serializable transactions. They must be global across all backends,
135-
* but are not needed outside the predicate.c source file. Protected
136-
* by SerializableXactHashLock.
135+
* but are not needed outside the predicate.c source file. Protected by
136+
* SerializableXactHashLock.
137137
*/
138138
TransactionId SxactGlobalXmin; /* global xmin for active serializable
139139
* transactions */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy