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

Commit3eba765

Browse files
committed
Remove hardcoded 20000 and change to BootstrapObjectIdData.
1 parent31c8e94 commit3eba765

File tree

1 file changed

+5
-14
lines changed
  • src/backend/storage/lmgr

1 file changed

+5
-14
lines changed

‎src/backend/storage/lmgr/lock.c

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.7 1997/02/12 05:23:49 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.8 1997/02/14 04:52:59 momjian Exp $
1111
*
1212
* NOTES
1313
* Outside modules can create a lock table and acquire/release
@@ -46,6 +46,7 @@
4646
#include"utils/memutils.h"
4747
#include"utils/palloc.h"
4848
#include"access/xact.h"
49+
#include"access/transam.h"
4950

5051
/*#define LOCK_MGR_DEBUG*/
5152

@@ -59,18 +60,8 @@
5960

6061
intlockDebug=0;
6162

62-
#ifndefLOCK_DEBUG_OID_MIN
63-
/*
64-
* This is totally arbitrary. It is the minimum relation oid
65-
* which will trigger the locking debug when the -K option
66-
* is given to the backend. This is done to avoid tracing
67-
* locks on system relations.
68-
*/
69-
#defineLOCK_DEBUG_OID_MIN 20000
70-
#endif
71-
7263
#defineLOCK_PRINT(where,tag,type)\
73-
if ((lockDebug >= 1) && (tag->relId >=LOCK_DEBUG_OID_MIN)) \
64+
if ((lockDebug >= 1) && (tag->relId >=BootstrapObjectIdData)) \
7465
elog(DEBUG, \
7566
"%s: pid (%d) rel (%d) dbid (%d) tid (%d,%d) type (%d)",where, \
7667
getpid(),\
@@ -81,7 +72,7 @@ int lockDebug = 0;
8172
type);
8273

8374
#defineLOCK_DUMP(where,lock,type)\
84-
if ((lockDebug >= 1) && (lock->tag.relId >=LOCK_DEBUG_OID_MIN)) \
75+
if ((lockDebug >= 1) && (lock->tag.relId >=BootstrapObjectIdData)) \
8576
elog(DEBUG, \
8677
"%s: pid (%d) rel (%d) dbid (%d) tid (%d,%d) nHolding (%d) "\
8778
"holders (%d,%d,%d,%d,%d) type (%d)",where, \
@@ -101,7 +92,7 @@ int lockDebug = 0;
10192
#defineXID_PRINT(where,xidentP)\
10293
if ((lockDebug >= 2) && \
10394
(((LOCK *)MAKE_PTR(xidentP->tag.lock))->tag.relId \
104-
>=LOCK_DEBUG_OID_MIN)) \
95+
>=BootstrapObjectIdData)) \
10596
elog(DEBUG,\
10697
"%s: pid (%d) xid (%d) pid (%d) lock (%x) nHolding (%d) "\
10798
"holders (%d,%d,%d,%d,%d)",\

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp