From 7217cc2fa9fbac49cde3abd824c577618a81abb9 Mon Sep 17 00:00:00 2001 From: Peter Geoghegan Date: Tue, 11 Apr 2023 13:07:52 -0700 Subject: [PATCH v1 1/4] Fix xl_heap_lock.infobits_set type --- src/include/access/heapam_xlog.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/access/heapam_xlog.h b/src/include/access/heapam_xlog.h index e71d84895..eee96dcbf 100644 --- a/src/include/access/heapam_xlog.h +++ b/src/include/access/heapam_xlog.h @@ -281,11 +281,11 @@ typedef struct xl_heap_lock { TransactionId locking_xid; /* might be a MultiXactId not xid */ OffsetNumber offnum; /* locked tuple's offset on page */ - int8 infobits_set; /* infomask and infomask2 bits to set */ + uint8 infobits_set; /* infomask and infomask2 bits to set */ uint8 flags; /* XLH_LOCK_* flag bits */ } xl_heap_lock; -#define SizeOfHeapLock (offsetof(xl_heap_lock, flags) + sizeof(int8)) +#define SizeOfHeapLock (offsetof(xl_heap_lock, flags) + sizeof(uint8)) /* This is what we need to know about locking an updated version of a row */ typedef struct xl_heap_lock_updated -- 2.40.0