Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
8fa93b01
Commit
8fa93b01
authored
Jun 26, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename Lockm to Locks.
parent
ae6a6585
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/ipci.c
+4
-4
src/backend/storage/lmgr/multi.c
src/backend/storage/lmgr/multi.c
+4
-4
src/include/storage/multilev.h
src/include/storage/multilev.h
+2
-2
No files found.
src/backend/storage/ipc/ipci.c
View file @
8fa93b01
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.1
2 1998/06/25 14:24:34
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.1
3 1998/06/26 19:57:48
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -92,8 +92,8 @@ CreateSharedMemoryAndSemaphores(IPCKey key)
...
@@ -92,8 +92,8 @@ CreateSharedMemoryAndSemaphores(IPCKey key)
* ----------------
* ----------------
*/
*/
InitLocks
();
InitLocks
();
InitMultiLevelLock
m
();
InitMultiLevelLock
s
();
if
(
InitMultiLevelLock
m
()
==
INVALID_TABLEID
)
if
(
InitMultiLevelLock
s
()
==
INVALID_TABLEID
)
elog
(
FATAL
,
"Couldn't create the lock table"
);
elog
(
FATAL
,
"Couldn't create the lock table"
);
/* ----------------
/* ----------------
...
@@ -146,7 +146,7 @@ AttachSharedMemoryAndSemaphores(IPCKey key)
...
@@ -146,7 +146,7 @@ AttachSharedMemoryAndSemaphores(IPCKey key)
* ----------------
* ----------------
*/
*/
InitLocks
();
InitLocks
();
if
(
InitMultiLevelLock
m
()
==
INVALID_TABLEID
)
if
(
InitMultiLevelLock
s
()
==
INVALID_TABLEID
)
elog
(
FATAL
,
"Couldn't attach to the lock table"
);
elog
(
FATAL
,
"Couldn't attach to the lock table"
);
AttachSharedInvalidationState
(
key
);
AttachSharedInvalidationState
(
key
);
...
...
src/backend/storage/lmgr/multi.c
View file @
8fa93b01
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.1
5 1998/06/26 01:58:45
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.1
6 1998/06/26 19:57:49
momjian Exp $
*
*
* NOTES:
* NOTES:
* (1) The lock.c module assumes that the caller here is doing
* (1) The lock.c module assumes that the caller here is doing
...
@@ -85,7 +85,7 @@ LockTableId ShortTermTableId = (LockTableId) NULL;
...
@@ -85,7 +85,7 @@ LockTableId ShortTermTableId = (LockTableId) NULL;
* Create the lock table described by MultiConflicts and Multiprio.
* Create the lock table described by MultiConflicts and Multiprio.
*/
*/
LockTableId
LockTableId
InitMultiLevelLock
m
()
InitMultiLevelLock
s
()
{
{
int
tableId
;
int
tableId
;
...
@@ -99,13 +99,13 @@ InitMultiLevelLockm()
...
@@ -99,13 +99,13 @@ InitMultiLevelLockm()
tableId
=
LockTableInit
(
"LockTable"
,
MultiConflicts
,
MultiPrios
,
5
);
tableId
=
LockTableInit
(
"LockTable"
,
MultiConflicts
,
MultiPrios
,
5
);
MultiTableId
=
tableId
;
MultiTableId
=
tableId
;
if
(
!
(
MultiTableId
))
if
(
!
(
MultiTableId
))
elog
(
ERROR
,
"InitMultiLock
m
: couldnt initialize lock table"
);
elog
(
ERROR
,
"InitMultiLock
s
: couldnt initialize lock table"
);
/* -----------------------
/* -----------------------
* No short term lock table for now. -Jeff 15 July 1991
* No short term lock table for now. -Jeff 15 July 1991
*
*
* ShortTermTableId = LockTableRename(tableId);
* ShortTermTableId = LockTableRename(tableId);
* if (! (ShortTermTableId)) {
* if (! (ShortTermTableId)) {
* elog(ERROR,"InitMultiLock
m
: couldnt rename lock table");
* elog(ERROR,"InitMultiLock
s
: couldnt rename lock table");
* }
* }
* -----------------------
* -----------------------
*/
*/
...
...
src/include/storage/multilev.h
View file @
8fa93b01
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: multilev.h,v 1.
7 1998/02/26 04:43:3
0 momjian Exp $
* $Id: multilev.h,v 1.
8 1998/06/26 19:57:5
0 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -49,7 +49,7 @@ extern LockTableId ShortTermTableId;
...
@@ -49,7 +49,7 @@ extern LockTableId ShortTermTableId;
/*
/*
* function prototypes
* function prototypes
*/
*/
extern
LockTableId
InitMultiLevelLock
m
(
void
);
extern
LockTableId
InitMultiLevelLock
s
(
void
);
extern
bool
MultiLockReln
(
LockInfo
linfo
,
LOCKT
lockt
);
extern
bool
MultiLockReln
(
LockInfo
linfo
,
LOCKT
lockt
);
extern
bool
MultiLockTuple
(
LockInfo
linfo
,
ItemPointer
tidPtr
,
LOCKT
lockt
);
extern
bool
MultiLockTuple
(
LockInfo
linfo
,
ItemPointer
tidPtr
,
LOCKT
lockt
);
extern
bool
MultiLockPage
(
LockInfo
linfo
,
ItemPointer
tidPtr
,
LOCKT
lockt
);
extern
bool
MultiLockPage
(
LockInfo
linfo
,
ItemPointer
tidPtr
,
LOCKT
lockt
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment