Commit 219bb76d authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

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.
parent ca08ce28
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment