summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2025-10-22 16:47:38 -0500
committerNathan Bossart <nathan@postgresql.org>2025-10-22 16:47:38 -0500
commitd10866f1fdf1fbf66605b47e8303848b6c7d950b (patch)
tree6f1da30a0c0daeec0ab2ea1d0b661b26119a4cb8
parent716c451128a141acbae1ccab6946c716021a977f (diff)
Fix type of infomask parameter in htup_details.h functions.
Oversight in commit 34694ec888. Since there aren't any known live bugs related to this, no back-patch. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aPk4u955ZPPZ_nYw%40nathan
-rw-r--r--src/include/access/htup_details.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/access/htup_details.h b/src/include/access/htup_details.h
index fa4525e3f58..f3593acc8c2 100644
--- a/src/include/access/htup_details.h
+++ b/src/include/access/htup_details.h
@@ -264,19 +264,19 @@ HEAP_LOCKED_UPGRADED(uint16 infomask)
* Use these to test whether a particular lock is applied to a tuple
*/
static inline bool
-HEAP_XMAX_IS_SHR_LOCKED(int16 infomask)
+HEAP_XMAX_IS_SHR_LOCKED(uint16 infomask)
{
return (infomask & HEAP_LOCK_MASK) == HEAP_XMAX_SHR_LOCK;
}
static inline bool
-HEAP_XMAX_IS_EXCL_LOCKED(int16 infomask)
+HEAP_XMAX_IS_EXCL_LOCKED(uint16 infomask)
{
return (infomask & HEAP_LOCK_MASK) == HEAP_XMAX_EXCL_LOCK;
}
static inline bool
-HEAP_XMAX_IS_KEYSHR_LOCKED(int16 infomask)
+HEAP_XMAX_IS_KEYSHR_LOCKED(uint16 infomask)
{
return (infomask & HEAP_LOCK_MASK) == HEAP_XMAX_KEYSHR_LOCK;
}