mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
>
> 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
This commit is contained in:
parent
a29ae2264a
commit
6921f364db
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user