mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
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:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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;
|
tag.objId.xid = xid;
|
||||||
|
|
||||||
LockAcquire(LockTableId, &tag, ShareLock);
|
LockAcquire(LockTableId, &tag, ShareLock);
|
||||||
|
LockRelease(LockTableId, &tag, ShareLock);
|
||||||
|
|
||||||
TransactionIdFlushCache();
|
TransactionIdFlushCache();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user