Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 219bb76

Browse files
committedMay 31, 1999
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)
Failed to load comments.