mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +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:
parent
ca08ce28e8
commit
219bb76d61
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user