Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b15b8c5

Browse files
committed
1 parent e65dbc9 commit b15b8c5

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/backend/access/heap/heapam.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7437,10 +7437,10 @@ MultiXactIdGetUpdateXid(TransactionId xmax, uint16 t_infomask)
74377437
* checking the hint bits.
74387438
*/
74397439
TransactionId
7440-
HeapTupleGetUpdateXid(HeapTupleHeader tuple)
7440+
HeapTupleGetUpdateXid(const HeapTupleHeaderData *tup)
74417441
{
7442-
return MultiXactIdGetUpdateXid(HeapTupleHeaderGetRawXmax(tuple),
7443-
tuple->t_infomask);
7442+
return MultiXactIdGetUpdateXid(HeapTupleHeaderGetRawXmax(tup),
7443+
tup->t_infomask);
74447444
}
74457445

74467446
/*

src/backend/utils/time/combocid.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static CommandId GetRealCmax(CommandId combocid);
101101
*/
102102

103103
CommandId
104-
HeapTupleHeaderGetCmin(HeapTupleHeader tup)
104+
HeapTupleHeaderGetCmin(const HeapTupleHeaderData *tup)
105105
{
106106
CommandId cid = HeapTupleHeaderGetRawCommandId(tup);
107107

@@ -115,7 +115,7 @@ HeapTupleHeaderGetCmin(HeapTupleHeader tup)
115115
}
116116

117117
CommandId
118-
HeapTupleHeaderGetCmax(HeapTupleHeader tup)
118+
HeapTupleHeaderGetCmax(const HeapTupleHeaderData *tup)
119119
{
120120
CommandId cid = HeapTupleHeaderGetRawCommandId(tup);
121121

@@ -150,7 +150,7 @@ HeapTupleHeaderGetCmax(HeapTupleHeader tup)
150150
* changes the tuple in shared buffers.
151151
*/
152152
void
153-
HeapTupleHeaderAdjustCmax(HeapTupleHeader tup,
153+
HeapTupleHeaderAdjustCmax(const HeapTupleHeaderData *tup,
154154
CommandId *cmax,
155155
bool *iscombo)
156156
{

src/include/access/htup.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ typedef HeapTupleData *HeapTuple;
7878
#define HeapTupleIsValid(tuple) PointerIsValid(tuple)
7979

8080
/* HeapTupleHeader functions implemented in utils/time/combocid.c */
81-
extern CommandId HeapTupleHeaderGetCmin(HeapTupleHeader tup);
82-
extern CommandId HeapTupleHeaderGetCmax(HeapTupleHeader tup);
83-
extern void HeapTupleHeaderAdjustCmax(HeapTupleHeader tup,
81+
extern CommandId HeapTupleHeaderGetCmin(const HeapTupleHeaderData *tup);
82+
extern CommandId HeapTupleHeaderGetCmax(const HeapTupleHeaderData *tup);
83+
extern void HeapTupleHeaderAdjustCmax(const HeapTupleHeaderData *tup,
8484
CommandId *cmax, bool *iscombo);
8585

8686
/* Prototype for HeapTupleHeader accessors in heapam.c */
87-
extern TransactionId HeapTupleGetUpdateXid(HeapTupleHeader tuple);
87+
extern TransactionId HeapTupleGetUpdateXid(const HeapTupleHeaderData *tup);
8888

8989
#endif /* HTUP_H */

0 commit comments

Comments
 (0)