diff options
Diffstat (limited to 'src/include/storage')
| -rw-r--r-- | src/include/storage/buf_internals.h | 6 | ||||
| -rw-r--r-- | src/include/storage/lmgr.h | 22 |
2 files changed, 9 insertions, 19 deletions
diff --git a/src/include/storage/buf_internals.h b/src/include/storage/buf_internals.h index 98d8be3369..b98f0fb820 100644 --- a/src/include/storage/buf_internals.h +++ b/src/include/storage/buf_internals.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: buf_internals.h,v 1.31 1999/07/16 17:07:37 momjian Exp $ + * $Id: buf_internals.h,v 1.32 1999/09/18 19:08:18 tgl Exp $ * * NOTE * If BUFFERPAGE0 is defined, then 0 will be used as a @@ -64,8 +64,8 @@ struct buftag #define INIT_BUFFERTAG(a,xx_reln,xx_blockNum) \ ( \ - (a)->blockNum = xx_blockNum, \ - (a)->relId = ((LockInfo)(xx_reln->lockInfo))->lockRelId \ + (a)->blockNum = (xx_blockNum), \ + (a)->relId = (xx_reln)->rd_lockInfo.lockRelId \ ) #define BAD_BUFFER_ID(bid) ((bid<1) || (bid>(NBuffers))) diff --git a/src/include/storage/lmgr.h b/src/include/storage/lmgr.h index 8903af8ec6..302bedb677 100644 --- a/src/include/storage/lmgr.h +++ b/src/include/storage/lmgr.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: lmgr.h,v 1.22 1999/07/15 23:04:11 momjian Exp $ + * $Id: lmgr.h,v 1.23 1999/09/18 19:08:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -16,6 +16,11 @@ #include "storage/lock.h" #include "utils/rel.h" +/* These are the valid values of type LOCKMODE: */ + +/* NoLock is not a lock mode, but a flag value meaning "don't get a lock" */ +#define NoLock 0 + #define AccessShareLock 1 /* SELECT */ #define RowShareLock 2 /* SELECT FOR UPDATE */ #define RowExclusiveLock 3 /* INSERT, UPDATE, DELETE */ @@ -27,21 +32,6 @@ extern LOCKMETHOD LockTableId; -typedef struct LockRelId -{ - Oid relId; /* a relation identifier */ - Oid dbId; /* a database identifier */ -} LockRelId; - -typedef struct LockInfoData -{ - LockRelId lockRelId; -} LockInfoData; - -typedef LockInfoData *LockInfo; - -#define LockInfoIsValid(lockinfo) PointerIsValid(lockinfo) - extern LOCKMETHOD InitLockTable(void); extern void RelationInitLockInfo(Relation relation); |
