*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.62 1999/09/18 19:07:38 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.63 1999/11/28 01:56:48 tgl Exp $
*
* NOTES
* Outside modules can create a lock table and acquire/release
HASH_ENTER, &found);
if (!result)
{
+ SpinRelease(masterLock);
elog(NOTICE, "LockAcquire: xid table corrupted");
return FALSE;
}
XID_PRINT_AUX("LockAcquire: INCONSISTENT ", result);
LOCK_PRINT_AUX("LockAcquire: INCONSISTENT ", lock, lockmode);
/* Should we retry ? */
+ SpinRelease(masterLock);
return FALSE;
}
XID_PRINT("LockAcquire: granted", result);
XIDLookupEnt *xidLook = NULL;
XIDLookupEnt *tmp = NULL;
SHMEM_OFFSET end;
- SPINLOCK masterLock;
- int numLockModes;
LOCK *lock;
int count = 0;
int lockmethod = DEFAULT_LOCKMETHOD;
if (!lockMethodTable)
return;
- numLockModes = lockMethodTable->ctl->numLockModes;
- masterLock = lockMethodTable->ctl->masterLock;
-
if (SHMQueueEmpty(lockQueue))
return;