Release XactLockTable share lock immediately after this lock is acquired
authorVadim B. Mikheev <vadim4o@yahoo.com>
Mon, 31 May 1999 01:48:13 +0000 (01:48 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Mon, 31 May 1999 01:48:13 +0000 (01:48 +0000)
(no sense to hold it) or we'll be out of lock entries.
Great thanks to Hiroshi Inoue.

src/backend/storage/lmgr/lmgr.c

index b4b24625264d4ea912b34d731c714c63756f85e4..ca353c26e9255f3a468b7513548cf80c266d9c71 100644 (file)
@@ -322,6 +322,7 @@ XactLockTableWait(TransactionId xid)
        tag.objId.xid = xid;
 
        LockAcquire(LockTableId, &tag, ShareLock);
+       LockRelease(LockTableId, &tag, ShareLock);
 
        TransactionIdFlushCache();