summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian1998-09-09 18:32:05 +0000
committerBruce Momjian1998-09-09 18:32:05 +0000
commit6921f364db82e349ca9a1cc00a5fed9809a0f7f0 (patch)
tree10ca676ccbab5d386a87c349eb2cea180ee71081
parenta29ae2264ae8ddc2ef5abd31593c2df7616ade77 (diff)
>
> 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
-rw-r--r--src/backend/storage/lmgr/lock.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c
index a40034ac331..fb1d5bf736e 100644
--- a/src/backend/storage/lmgr/lock.c
+++ b/src/backend/storage/lmgr/lock.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.36 1998/09/01 04:32:00 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.37 1998/09/09 18:32:05 momjian Exp $
*
* NOTES
* Outside modules can create a lock table and acquire/release
@@ -136,18 +136,11 @@ static int WaitOnLock(LOCKMETHOD lockmethod, LOCK *lock, LOCKMODE lockmode,
xidentP->holders[5], \
xidentP->nHolding)
-#define LOCK_TPRINTF(lock, args...) \
- if (((LOCKDEBUG(LOCK_LOCKMETHOD(*(lock))) >= 1) \
- && (lock->tag.relId >= lockDebugOidMin)) \
- || (lock->tag.relId == lockDebugRelation)) \
- TPRINTF(TRACE_ALL, args)
-
#else /* !LOCK_MGR_DEBUG */
#define LOCK_PRINT(where,lock,type)
#define LOCK_PRINT_AUX(where,lock,type)
#define XID_PRINT(where,xidentP)
#define XID_PRINT_AUX(where,xidentP)
-#define LOCK_TPRINTF(lock, args...)
#endif /* !LOCK_MGR_DEBUG */
static char *lock_types[] = {
@@ -1217,7 +1210,12 @@ LockRelease(LOCKMETHOD lockmethod, LOCKTAG *locktag, LOCKMODE lockmode)
ProcLockWakeup(&(lock->waitProcs), lockmethod, lock);
}
else
- LOCK_TPRINTF(lock, "LockRelease: no wakeup needed");
+ {
+ if (((LOCKDEBUG(LOCK_LOCKMETHOD(*(lock))) >= 1) \
+ && (lock->tag.relId >= lockDebugOidMin)) \
+ || (lock->tag.relId == lockDebugRelation))
+ TPRINTF(TRACE_ALL, "LockRelease: no wakeup needed");
+ }
SpinRelease(masterLock);
return TRUE;