mirror of
https://github.com/postgres/postgres.git
synced 2025-10-29 22:49:41 +03:00
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
This commit is contained in:
@@ -264,19 +264,19 @@ HEAP_LOCKED_UPGRADED(uint16 infomask)
|
|||||||
* Use these to test whether a particular lock is applied to a tuple
|
* Use these to test whether a particular lock is applied to a tuple
|
||||||
*/
|
*/
|
||||||
static inline bool
|
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;
|
return (infomask & HEAP_LOCK_MASK) == HEAP_XMAX_SHR_LOCK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool
|
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;
|
return (infomask & HEAP_LOCK_MASK) == HEAP_XMAX_EXCL_LOCK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool
|
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;
|
return (infomask & HEAP_LOCK_MASK) == HEAP_XMAX_KEYSHR_LOCK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user