Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit898b3e6

Browse files
committed
Back out some changes I made just for testing.
1 parent9dde6b3 commit898b3e6

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

‎src/backend/storage/ipc/ipci.c

Lines changed: 3 additions & 2 deletions
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

Lines changed: 8 additions & 1 deletion
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
inttableId;
9191

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp