Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6921f36

Browse files
committed
>
> Open portability issues: > > /usr/local should be searched for lib and include for all ports if present > (currently not working, I have libreadline there) > > the stream functions on AIX need a size_t for addrlen's in fe-connect.c and pqcomm.c. > > lock.c still has an incompatible TPRINTF(flags, args...) definition Massimo
1 parent a29ae22 commit 6921f36

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

+7-9
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-
#define LOCK_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
#define LOCK_PRINT(where,lock,type)
147141
#define LOCK_PRINT_AUX(where,lock,type)
148142
#define XID_PRINT(where,xidentP)
149143
#define XID_PRINT_AUX(where,xidentP)
150-
#define LOCK_TPRINTF(lock, args...)
151144
#endif /* !LOCK_MGR_DEBUG */
152145

153146
static char *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)