Release XactLockTable share lock immediately after this lock is acquired

(no sense to hold it) or we'll be out of lock entries.
Great thanks to Hiroshi Inoue.
This commit is contained in:
Vadim B. Mikheev 1999-05-31 01:48:13 +00:00
parent ca08ce28e8
commit 219bb76d61
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.25 1999/05/25 22:42:01 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.26 1999/05/31 01:48:13 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@ -322,6 +322,7 @@ XactLockTableWait(TransactionId xid)
tag.objId.xid = xid;
LockAcquire(LockTableId, &tag, ShareLock);
LockRelease(LockTableId, &tag, ShareLock);
TransactionIdFlushCache();