mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Fixed all elog related warnings, as well as a few others.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.69 2000/01/05 18:23:49 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.70 2000/01/15 02:59:33 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1225,8 +1225,8 @@ BufferPoolCheckLeak()
|
||||
BufferDesc *buf = &(BufferDescriptors[i - 1]);
|
||||
|
||||
elog(NOTICE,
|
||||
"Buffer Leak: [%03d] (freeNext=%d, freePrev=%d, \
|
||||
relname=%s, blockNum=%d, flags=0x%x, refcount=%d %d)",
|
||||
"Buffer Leak: [%03d] (freeNext=%ld, freePrev=%ld, \
|
||||
relname=%s, blockNum=%d, flags=0x%x, refcount=%d %ld)",
|
||||
i - 1, buf->freeNext, buf->freePrev,
|
||||
buf->sb_relname, buf->tag.blockNum, buf->flags,
|
||||
buf->refcount, PrivateRefCount[i - 1]);
|
||||
@@ -1536,8 +1536,8 @@ PrintBufferDescs()
|
||||
SpinAcquire(BufMgrLock);
|
||||
for (i = 0; i < NBuffers; ++i, ++buf)
|
||||
{
|
||||
elog(DEBUG, "[%02d] (freeNext=%d, freePrev=%d, relname=%s, \
|
||||
blockNum=%d, flags=0x%x, refcount=%d %d)",
|
||||
elog(DEBUG, "[%02d] (freeNext=%ld, freePrev=%ld, relname=%s, \
|
||||
blockNum=%d, flags=0x%x, refcount=%d %ld)",
|
||||
i, buf->freeNext, buf->freePrev,
|
||||
buf->sb_relname, buf->tag.blockNum, buf->flags,
|
||||
buf->refcount, PrivateRefCount[i]);
|
||||
@@ -1566,8 +1566,8 @@ PrintPinnedBufs()
|
||||
for (i = 0; i < NBuffers; ++i, ++buf)
|
||||
{
|
||||
if (PrivateRefCount[i] > 0)
|
||||
elog(NOTICE, "[%02d] (freeNext=%d, freePrev=%d, relname=%s, \
|
||||
blockNum=%d, flags=0x%x, refcount=%d %d)\n",
|
||||
elog(NOTICE, "[%02d] (freeNext=%ld, freePrev=%ld, relname=%s, \
|
||||
blockNum=%d, flags=0x%x, refcount=%d %ld)\n",
|
||||
i, buf->freeNext, buf->freePrev, buf->sb_relname,
|
||||
buf->tag.blockNum, buf->flags,
|
||||
buf->refcount, PrivateRefCount[i]);
|
||||
@@ -1668,7 +1668,7 @@ FlushRelationBuffers(Relation rel, BlockNumber block, bool doFlush)
|
||||
}
|
||||
if (LocalRefCount[i] > 0)
|
||||
{
|
||||
elog(NOTICE, "FlushRelationBuffers(%s (local), %u): block %u is referenced (%d)",
|
||||
elog(NOTICE, "FlushRelationBuffers(%s (local), %u): block %u is referenced (%ld)",
|
||||
RelationGetRelationName(rel), block,
|
||||
buf->tag.blockNum, LocalRefCount[i]);
|
||||
return -2;
|
||||
@@ -1694,7 +1694,7 @@ FlushRelationBuffers(Relation rel, BlockNumber block, bool doFlush)
|
||||
SpinRelease(BufMgrLock);
|
||||
if (FlushBuffer(i+1, false) != STATUS_OK)
|
||||
{
|
||||
elog(NOTICE, "FlushRelationBuffers(%s, %u): block %u is dirty (private %d, global %d), could not flush it",
|
||||
elog(NOTICE, "FlushRelationBuffers(%s, %u): block %u is dirty (private %ld, global %d), could not flush it",
|
||||
buf->sb_relname, block, buf->tag.blockNum,
|
||||
PrivateRefCount[i], buf->refcount);
|
||||
return -1;
|
||||
@@ -1704,7 +1704,7 @@ FlushRelationBuffers(Relation rel, BlockNumber block, bool doFlush)
|
||||
else
|
||||
{
|
||||
SpinRelease(BufMgrLock);
|
||||
elog(NOTICE, "FlushRelationBuffers(%s, %u): block %u is dirty (private %d, global %d)",
|
||||
elog(NOTICE, "FlushRelationBuffers(%s, %u): block %u is dirty (private %ld, global %d)",
|
||||
buf->sb_relname, block, buf->tag.blockNum,
|
||||
PrivateRefCount[i], buf->refcount);
|
||||
return -1;
|
||||
@@ -1713,7 +1713,7 @@ FlushRelationBuffers(Relation rel, BlockNumber block, bool doFlush)
|
||||
if (!(buf->flags & BM_FREE))
|
||||
{
|
||||
SpinRelease(BufMgrLock);
|
||||
elog(NOTICE, "FlushRelationBuffers(%s, %u): block %u is referenced (private %d, global %d)",
|
||||
elog(NOTICE, "FlushRelationBuffers(%s, %u): block %u is referenced (private %ld, global %d)",
|
||||
buf->sb_relname, block, buf->tag.blockNum,
|
||||
PrivateRefCount[i], buf->refcount);
|
||||
return -2;
|
||||
@@ -2091,7 +2091,7 @@ LockBuffer(Buffer buffer, int mode)
|
||||
BufferLocks[buffer - 1] &= ~BL_W_LOCK;
|
||||
}
|
||||
else
|
||||
elog(ERROR, "UNLockBuffer: buffer %u is not locked", buffer);
|
||||
elog(ERROR, "UNLockBuffer: buffer %lu is not locked", buffer);
|
||||
}
|
||||
else if (mode == BUFFER_LOCK_SHARE)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.43 1999/11/22 02:06:31 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.44 2000/01/15 02:59:34 petere Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@@ -554,7 +554,7 @@ static void
|
||||
IpcMemoryDetach(int status, char *shmaddr)
|
||||
{
|
||||
if (shmdt(shmaddr) < 0)
|
||||
elog(NOTICE, "IpcMemoryDetach: shmdt(0x%x): %m", shmaddr);
|
||||
elog(NOTICE, "IpcMemoryDetach: shmdt(0x%p): %m", shmaddr);
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.63 1999/11/28 01:56:48 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.64 2000/01/15 02:59:35 petere Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Outside modules can create a lock table and acquire/release
|
||||
@@ -1362,7 +1362,7 @@ LockReleaseAll(LOCKMETHOD lockmethod, SHM_QUEUE *lockQueue)
|
||||
{
|
||||
/* Should never happen */
|
||||
elog(NOTICE,
|
||||
"LockReleaseAll: INVALID PID: [%u] [%d,%d,%d]",
|
||||
"LockReleaseAll: INVALID PID: [%u] [%ld,%d,%d]",
|
||||
lock->tag.objId.blkno,
|
||||
xidLook->tag.lock, xidLook->tag.pid, xidLook->tag.xid);
|
||||
nleft++;
|
||||
|
||||
Reference in New Issue
Block a user