Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 898b3e6

Browse files
committed
Back out some changes I made just for testing.
1 parent 9dde6b3 commit 898b3e6

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/backend/storage/ipc/ipci.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.10 1998/06/23 17:52:28 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.11 1998/06/23 17:59:54 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -92,6 +92,7 @@ CreateSharedMemoryAndSemaphores(IPCKey key)
9292
* ----------------
9393
*/
9494
InitLocks();
95+
InitMultiLevelLockm();
9596
if (InitMultiLevelLockm() == INVALID_TABLEID)
9697
elog(FATAL, "Couldn't create the lock table");
9798

@@ -145,7 +146,7 @@ AttachSharedMemoryAndSemaphores(IPCKey key)
145146
* ----------------
146147
*/
147148
InitLocks();
148-
if (!MultiTableId && InitMultiLevelLockm() == INVALID_TABLEID)
149+
if (InitMultiLevelLockm() == INVALID_TABLEID)
149150
elog(FATAL, "Couldn't attach to the lock table");
150151

151152
AttachSharedInvalidationState(key);

src/backend/storage/lmgr/multi.c

+8-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.13 1998/06/23 17:52:28 momjian Exp $
15+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.14 1998/06/23 17:59:54 momjian Exp $
1616
*
1717
* NOTES:
1818
* (1) The lock.c module assumes that the caller here is doing
@@ -89,6 +89,13 @@ InitMultiLevelLockm()
8989
{
9090
int tableId;
9191

92+
/* -----------------------
93+
* If we're already initialized just return the table id.
94+
* -----------------------
95+
*/
96+
if (MultiTableId)
97+
return MultiTableId;
98+
9299
tableId = LockTabInit("LockTable", MultiConflicts, MultiPrios, 5);
93100
MultiTableId = tableId;
94101
if (!(MultiTableId))

0 commit comments

Comments
 (0)