diff options
| author | Bruce Momjian <bruce@momjian.us> | 1998-07-13 16:35:04 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1998-07-13 16:35:04 +0000 |
| commit | 5aea4062d68ae49bca3131a285793b932930cc43 (patch) | |
| tree | 5e6ae9f17216a2a7da0fb7bc6f584b21643a8dfb /src/backend/storage/lmgr/single.c | |
| parent | 8bac4ca87b6cdaaf8fcea1e78c31be64ee4312ea (diff) | |
| download | postgresql-5aea4062d68ae49bca3131a285793b932930cc43.tar.gz | |
Inline function, rename libpq variablees, change lrel to lockrel.
Diffstat (limited to 'src/backend/storage/lmgr/single.c')
| -rw-r--r-- | src/backend/storage/lmgr/single.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/storage/lmgr/single.c b/src/backend/storage/lmgr/single.c index d58657b2c3..7d1876640d 100644 --- a/src/backend/storage/lmgr/single.c +++ b/src/backend/storage/lmgr/single.c @@ -13,7 +13,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/single.c,v 1.7 1998/06/30 02:33:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/single.c,v 1.8 1998/07/13 16:34:52 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -32,7 +32,7 @@ * Returns: TRUE if the lock can be set, FALSE otherwise. */ bool -SingleLockReln(LockInfo linfo, LOCKMODE lockmode, int action) +SingleLockReln(LockInfo lockinfo, LOCKMODE lockmode, int action) { LOCKTAG tag; @@ -41,8 +41,8 @@ SingleLockReln(LockInfo linfo, LOCKMODE lockmode, int action) * will return miss if the padding bytes aren't zero'd. */ MemSet(&tag, 0, sizeof(tag)); - tag.relId = linfo->lRelId.relId; - tag.dbId = linfo->lRelId.dbId; + tag.relId = lockinfo->lockRelId.relId; + tag.dbId = lockinfo->lockRelId.dbId; BlockIdSet(&(tag.tupleId.ip_blkid), InvalidBlockNumber); tag.tupleId.ip_posid = InvalidOffsetNumber; @@ -61,7 +61,7 @@ SingleLockReln(LockInfo linfo, LOCKMODE lockmode, int action) * */ bool -SingleLockPage(LockInfo linfo, +SingleLockPage(LockInfo lockinfo, ItemPointer tidPtr, LOCKMODE lockmode, int action) @@ -73,8 +73,8 @@ SingleLockPage(LockInfo linfo, * will return miss if the padding bytes aren't zero'd. */ MemSet(&tag, 0, sizeof(tag)); - tag.relId = linfo->lRelId.relId; - tag.dbId = linfo->lRelId.dbId; + tag.relId = lockinfo->lockRelId.relId; + tag.dbId = lockinfo->lockRelId.dbId; BlockIdCopy(&(tag.tupleId.ip_blkid), &(tidPtr->ip_blkid)); tag.tupleId.ip_posid = InvalidOffsetNumber; |
