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

Commit6921f36

Browse files
committed
>
> Open portability issues:>> /usr/local should be searched for lib and include for all ports ifpresent> (currently not working, I have libreadline there)>> the stream functions on AIX need a size_t for addrlen's infe-connect.c and pqcomm.c.>> lock.c still has an incompatible TPRINTF(flags, args...) definitionMassimo
1 parenta29ae22 commit6921f36

File tree

1 file changed

+7
-9
lines changed
  • src/backend/storage/lmgr

1 file changed

+7
-9
lines changed

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

Lines changed: 7 additions & 9 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.36 1998/09/01 04:32:00 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.37 1998/09/09 18:32:05 momjian Exp $
1111
*
1212
* NOTES
1313
* Outside modules can create a lock table and acquire/release
@@ -136,18 +136,11 @@ static int WaitOnLock(LOCKMETHOD lockmethod, LOCK *lock, LOCKMODE lockmode,
136136
xidentP->holders[5], \
137137
xidentP->nHolding)
138138

139-
#defineLOCK_TPRINTF(lock,args...) \
140-
if (((LOCKDEBUG(LOCK_LOCKMETHOD(*(lock))) >= 1) \
141-
&& (lock->tag.relId >= lockDebugOidMin)) \
142-
|| (lock->tag.relId == lockDebugRelation)) \
143-
TPRINTF(TRACE_ALL, args)
144-
145139
#else/* !LOCK_MGR_DEBUG */
146140
#defineLOCK_PRINT(where,lock,type)
147141
#defineLOCK_PRINT_AUX(where,lock,type)
148142
#defineXID_PRINT(where,xidentP)
149143
#defineXID_PRINT_AUX(where,xidentP)
150-
#defineLOCK_TPRINTF(lock,args...)
151144
#endif/* !LOCK_MGR_DEBUG */
152145

153146
staticchar*lock_types[]= {
@@ -1217,7 +1210,12 @@ LockRelease(LOCKMETHOD lockmethod, LOCKTAG *locktag, LOCKMODE lockmode)
12171210
ProcLockWakeup(&(lock->waitProcs),lockmethod,lock);
12181211
}
12191212
else
1220-
LOCK_TPRINTF(lock,"LockRelease: no wakeup needed");
1213+
{
1214+
if (((LOCKDEBUG(LOCK_LOCKMETHOD(*(lock))) >=1) \
1215+
&& (lock->tag.relId >=lockDebugOidMin)) \
1216+
|| (lock->tag.relId==lockDebugRelation))
1217+
TPRINTF(TRACE_ALL,"LockRelease: no wakeup needed");
1218+
}
12211219

12221220
SpinRelease(masterLock);
12231221
return TRUE;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp