From bbf37e947793f70986dcd4defad33b0e0c7facf7 Mon Sep 17 00:00:00 2001 From: "Vadim B. Mikheev" Date: Tue, 1 Jun 1999 09:35:39 +0000 Subject: typedef struct LTAG { Oid relId; Oid dbId; union { BlockNumber blkno; TransactionId xid; } objId; > > Added: > /* > * offnum should be part of objId.tupleId above, but would increase > * sizeof(LOCKTAG) and so moved here; currently used by userlocks only. > */ > OffsetNumber offnum; uint16 lockmethod; /* needed by userlocks */ } LOCKTAG; gmake clean required... User locks are ready for 6.5 release... --- src/include/storage/lock.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/include/storage/lock.h b/src/include/storage/lock.h index 8693231a8c6..37b7b053ee8 100644 --- a/src/include/storage/lock.h +++ b/src/include/storage/lock.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: lock.h,v 1.29 1999/05/29 06:14:42 vadim Exp $ + * $Id: lock.h,v 1.30 1999/06/01 09:35:39 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -61,14 +61,19 @@ typedef int LOCKMETHOD; typedef struct LTAG { - Oid relId; - Oid dbId; + Oid relId; + Oid dbId; union { - BlockNumber blkno; - TransactionId xid; - } objId; - uint16 lockmethod; /* needed by user locks */ + BlockNumber blkno; + TransactionId xid; + } objId; + /* + * offnum should be part of objId.tupleId above, but would increase + * sizeof(LOCKTAG) and so moved here; currently used by userlocks only. + */ + OffsetNumber offnum; + uint16 lockmethod; /* needed by userlocks */ } LOCKTAG; #define TAGSIZE (sizeof(LOCKTAG)) -- cgit v1.2.3