mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Add some const decorations (htup.h)
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517@enterprisedb.com
This commit is contained in:
@@ -101,7 +101,7 @@ static CommandId GetRealCmax(CommandId combocid);
|
||||
*/
|
||||
|
||||
CommandId
|
||||
HeapTupleHeaderGetCmin(HeapTupleHeader tup)
|
||||
HeapTupleHeaderGetCmin(const HeapTupleHeaderData *tup)
|
||||
{
|
||||
CommandId cid = HeapTupleHeaderGetRawCommandId(tup);
|
||||
|
||||
@@ -115,7 +115,7 @@ HeapTupleHeaderGetCmin(HeapTupleHeader tup)
|
||||
}
|
||||
|
||||
CommandId
|
||||
HeapTupleHeaderGetCmax(HeapTupleHeader tup)
|
||||
HeapTupleHeaderGetCmax(const HeapTupleHeaderData *tup)
|
||||
{
|
||||
CommandId cid = HeapTupleHeaderGetRawCommandId(tup);
|
||||
|
||||
@@ -150,7 +150,7 @@ HeapTupleHeaderGetCmax(HeapTupleHeader tup)
|
||||
* changes the tuple in shared buffers.
|
||||
*/
|
||||
void
|
||||
HeapTupleHeaderAdjustCmax(HeapTupleHeader tup,
|
||||
HeapTupleHeaderAdjustCmax(const HeapTupleHeaderData *tup,
|
||||
CommandId *cmax,
|
||||
bool *iscombo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user