*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.36 1999/11/17 23:51:21 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.37 1999/11/28 01:58:08 tgl Exp $
*
*-------------------------------------------------------------------------
*/
tag.dbId = relation->rd_lockInfo.lockRelId.dbId;
tag.objId.blkno = InvalidBlockNumber;
- LockAcquire(LockTableId, &tag, lockmode);
+ if (! LockAcquire(LockTableId, &tag, lockmode))
+ elog(ERROR, "LockRelation: LockAcquire failed");
/*
* Check to see if the relcache entry has been invalidated
tag.dbId = relation->rd_lockInfo.lockRelId.dbId;
tag.objId.blkno = blkno;
- LockAcquire(LockTableId, &tag, lockmode);
+ if (! LockAcquire(LockTableId, &tag, lockmode))
+ elog(ERROR, "LockPage: LockAcquire failed");
}
/*
tag.dbId = InvalidOid;
tag.objId.xid = xid;
- LockAcquire(LockTableId, &tag, ExclusiveLock);
+ if (! LockAcquire(LockTableId, &tag, ExclusiveLock))
+ elog(ERROR, "XactLockTableInsert: LockAcquire failed");
}
void
tag.dbId = InvalidOid;
tag.objId.xid = xid;
- LockAcquire(LockTableId, &tag, ShareLock);
+ if (! LockAcquire(LockTableId, &tag, ShareLock))
+ elog(ERROR, "XactLockTableWait: LockAcquire failed");
+
LockRelease(LockTableId, &tag, ShareLock);
/*