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
3eba7651
Commit
3eba7651
authored
Feb 14, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove hardcoded 20000 and change to BootstrapObjectIdData.
parent
31c8e94b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/lock.c
+5
-14
No files found.
src/backend/storage/lmgr/lock.c
View file @
3eba7651
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.
7 1997/02/12 05:23:49 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.
8 1997/02/14 04:52:59 momjian
Exp $
*
* NOTES
* Outside modules can create a lock table and acquire/release
...
...
@@ -46,6 +46,7 @@
#include "utils/memutils.h"
#include "utils/palloc.h"
#include "access/xact.h"
#include "access/transam.h"
/*#define LOCK_MGR_DEBUG*/
...
...
@@ -59,18 +60,8 @@
int
lockDebug
=
0
;
#ifndef LOCK_DEBUG_OID_MIN
/*
* This is totally arbitrary. It is the minimum relation oid
* which will trigger the locking debug when the -K option
* is given to the backend. This is done to avoid tracing
* locks on system relations.
*/
#define LOCK_DEBUG_OID_MIN 20000
#endif
#define LOCK_PRINT(where,tag,type)\
if ((lockDebug >= 1) && (tag->relId >=
LOCK_DEBUG_OID_MIN
)) \
if ((lockDebug >= 1) && (tag->relId >=
BootstrapObjectIdData
)) \
elog(DEBUG, \
"%s: pid (%d) rel (%d) dbid (%d) tid (%d,%d) type (%d)",where, \
getpid(),\
...
...
@@ -81,7 +72,7 @@ int lockDebug = 0;
type);
#define LOCK_DUMP(where,lock,type)\
if ((lockDebug >= 1) && (lock->tag.relId >=
LOCK_DEBUG_OID_MIN
)) \
if ((lockDebug >= 1) && (lock->tag.relId >=
BootstrapObjectIdData
)) \
elog(DEBUG, \
"%s: pid (%d) rel (%d) dbid (%d) tid (%d,%d) nHolding (%d) "\
"holders (%d,%d,%d,%d,%d) type (%d)",where, \
...
...
@@ -101,7 +92,7 @@ int lockDebug = 0;
#define XID_PRINT(where,xidentP)\
if ((lockDebug >= 2) && \
(((LOCK *)MAKE_PTR(xidentP->tag.lock))->tag.relId \
>=
LOCK_DEBUG_OID_MIN
)) \
>=
BootstrapObjectIdData
)) \
elog(DEBUG,\
"%s: pid (%d) xid (%d) pid (%d) lock (%x) nHolding (%d) "\
"holders (%d,%d,%d,%d,%d)",\
...
...
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