Skip to content

Commit 219bb76

Browse files
committed
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.
1 parent ca08ce2 commit 219bb76

File tree

1 file changed

+2
-1
lines changed
  • src/backend/storage/lmgr

1 file changed

+2
-1
lines changed

src/backend/storage/lmgr/lmgr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.25 1999/05/25 22:42:01 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.26 1999/05/31 01:48:13 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -322,6 +322,7 @@ XactLockTableWait(TransactionId xid)
322322
tag.objId.xid = xid;
323323

324324
LockAcquire(LockTableId, &tag, ShareLock);
325+
LockRelease(LockTableId, &tag, ShareLock);
325326

326327
TransactionIdFlushCache();
327328

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy