diff options
Diffstat (limited to 'src/include/storage/predicate.h')
-rw-r--r-- | src/include/storage/predicate.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/include/storage/predicate.h b/src/include/storage/predicate.h index 7b5846982e1..5ddbc1d3f41 100644 --- a/src/include/storage/predicate.h +++ b/src/include/storage/predicate.h @@ -39,24 +39,24 @@ extern Size PredicateLockShmemSize(void); extern void CheckPointPredicate(void); /* predicate lock reporting */ -extern bool PageIsPredicateLocked(const Relation relation, const BlockNumber blkno); +extern bool PageIsPredicateLocked(Relation relation, BlockNumber blkno); /* predicate lock maintenance */ extern Snapshot RegisterSerializableTransaction(Snapshot snapshot); -extern void RegisterPredicateLockingXid(const TransactionId xid); -extern void PredicateLockRelation(const Relation relation, const Snapshot snapshot); -extern void PredicateLockPage(const Relation relation, const BlockNumber blkno, const Snapshot snapshot); -extern void PredicateLockTuple(const Relation relation, const HeapTuple tuple, const Snapshot snapshot); -extern void PredicateLockPageSplit(const Relation relation, const BlockNumber oldblkno, const BlockNumber newblkno); -extern void PredicateLockPageCombine(const Relation relation, const BlockNumber oldblkno, const BlockNumber newblkno); -extern void TransferPredicateLocksToHeapRelation(const Relation relation); -extern void ReleasePredicateLocks(const bool isCommit); +extern void RegisterPredicateLockingXid(TransactionId xid); +extern void PredicateLockRelation(Relation relation, Snapshot snapshot); +extern void PredicateLockPage(Relation relation, BlockNumber blkno, Snapshot snapshot); +extern void PredicateLockTuple(Relation relation, HeapTuple tuple, Snapshot snapshot); +extern void PredicateLockPageSplit(Relation relation, BlockNumber oldblkno, BlockNumber newblkno); +extern void PredicateLockPageCombine(Relation relation, BlockNumber oldblkno, BlockNumber newblkno); +extern void TransferPredicateLocksToHeapRelation(Relation relation); +extern void ReleasePredicateLocks(bool isCommit); /* conflict detection (may also trigger rollback) */ -extern void CheckForSerializableConflictOut(const bool valid, const Relation relation, const HeapTuple tuple, - const Buffer buffer, const Snapshot snapshot); -extern void CheckForSerializableConflictIn(const Relation relation, const HeapTuple tuple, const Buffer buffer); -extern void CheckTableForSerializableConflictIn(const Relation relation); +extern void CheckForSerializableConflictOut(bool valid, Relation relation, HeapTuple tuple, + Buffer buffer, Snapshot snapshot); +extern void CheckForSerializableConflictIn(Relation relation, HeapTuple tuple, Buffer buffer); +extern void CheckTableForSerializableConflictIn(Relation relation); /* final rollback checking */ extern void PreCommit_CheckForSerializationFailure(void); |