mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
Rename Lockm to Locks.
This commit is contained in:
parent
ae6a658584
commit
8fa93b016a
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.12 1998/06/25 14:24:34 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.13 1998/06/26 19:57:48 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -92,8 +92,8 @@ CreateSharedMemoryAndSemaphores(IPCKey key)
|
||||
* ----------------
|
||||
*/
|
||||
InitLocks();
|
||||
InitMultiLevelLockm();
|
||||
if (InitMultiLevelLockm() == INVALID_TABLEID)
|
||||
InitMultiLevelLocks();
|
||||
if (InitMultiLevelLocks() == INVALID_TABLEID)
|
||||
elog(FATAL, "Couldn't create the lock table");
|
||||
|
||||
/* ----------------
|
||||
@ -146,7 +146,7 @@ AttachSharedMemoryAndSemaphores(IPCKey key)
|
||||
* ----------------
|
||||
*/
|
||||
InitLocks();
|
||||
if (InitMultiLevelLockm() == INVALID_TABLEID)
|
||||
if (InitMultiLevelLocks() == INVALID_TABLEID)
|
||||
elog(FATAL, "Couldn't attach to the lock table");
|
||||
|
||||
AttachSharedInvalidationState(key);
|
||||
|
@ -12,7 +12,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.15 1998/06/26 01:58:45 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.16 1998/06/26 19:57:49 momjian Exp $
|
||||
*
|
||||
* NOTES:
|
||||
* (1) The lock.c module assumes that the caller here is doing
|
||||
@ -85,7 +85,7 @@ LockTableId ShortTermTableId = (LockTableId) NULL;
|
||||
* Create the lock table described by MultiConflicts and Multiprio.
|
||||
*/
|
||||
LockTableId
|
||||
InitMultiLevelLockm()
|
||||
InitMultiLevelLocks()
|
||||
{
|
||||
int tableId;
|
||||
|
||||
@ -99,13 +99,13 @@ InitMultiLevelLockm()
|
||||
tableId = LockTableInit("LockTable", MultiConflicts, MultiPrios, 5);
|
||||
MultiTableId = tableId;
|
||||
if (!(MultiTableId))
|
||||
elog(ERROR, "InitMultiLockm: couldnt initialize lock table");
|
||||
elog(ERROR, "InitMultiLocks: couldnt initialize lock table");
|
||||
/* -----------------------
|
||||
* No short term lock table for now. -Jeff 15 July 1991
|
||||
*
|
||||
* ShortTermTableId = LockTableRename(tableId);
|
||||
* if (! (ShortTermTableId)) {
|
||||
* elog(ERROR,"InitMultiLockm: couldnt rename lock table");
|
||||
* elog(ERROR,"InitMultiLocks: couldnt rename lock table");
|
||||
* }
|
||||
* -----------------------
|
||||
*/
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: multilev.h,v 1.7 1998/02/26 04:43:30 momjian Exp $
|
||||
* $Id: multilev.h,v 1.8 1998/06/26 19:57:50 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -49,7 +49,7 @@ extern LockTableId ShortTermTableId;
|
||||
/*
|
||||
* function prototypes
|
||||
*/
|
||||
extern LockTableId InitMultiLevelLockm(void);
|
||||
extern LockTableId InitMultiLevelLocks(void);
|
||||
extern bool MultiLockReln(LockInfo linfo, LOCKT lockt);
|
||||
extern bool MultiLockTuple(LockInfo linfo, ItemPointer tidPtr, LOCKT lockt);
|
||||
extern bool MultiLockPage(LockInfo linfo, ItemPointer tidPtr, LOCKT lockt);
|
||||
|
Loading…
Reference in New Issue
Block a user