mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03:00
From: Tatsuo Ishii <t-ishii@sra.co.jp>
Ok. I made patches replacing all of "#if FALSE" or "#if 0" to "#ifdef NOT_USED" for current. I have tested these patches in that the postgres binaries are identical.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.48 1999/02/13 23:17:57 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.49 1999/02/21 03:49:21 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1474,7 +1474,7 @@ PrintBufferDescs()
|
||||
if (IsUnderPostmaster)
|
||||
{
|
||||
SpinAcquire(BufMgrLock);
|
||||
#if 0
|
||||
#ifdef NOT_USED
|
||||
for (i = 0; i < NBuffers; ++i, ++buf)
|
||||
{
|
||||
elog(NOTICE, "[%02d] (freeNext=%d, freePrev=%d, relname=%s, \
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.43 1999/02/21 01:41:46 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.44 1999/02/21 03:49:22 scrappy Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Outside modules can create a lock table and acquire/release
|
||||
@@ -1569,7 +1569,7 @@ DeadLockCheck(SHM_QUEUE *lockQueue, LOCK *findlock, bool skip_check)
|
||||
MemSet(&item, 0, XID_TAGSIZE);
|
||||
TransactionIdStore(MyProc->xid, &item.tag.xid);
|
||||
item.tag.lock = MAKE_OFFSET(findlock);
|
||||
#if 0
|
||||
#ifdef NOT_USED
|
||||
item.tag.pid = pid;
|
||||
#endif
|
||||
|
||||
@@ -1648,7 +1648,7 @@ DeadLockCheck(SHM_QUEUE *lockQueue, LOCK *findlock, bool skip_check)
|
||||
MemSet(&item, 0, XID_TAGSIZE);
|
||||
TransactionIdStore(proc->xid, &item.tag.xid);
|
||||
item.tag.lock = MAKE_OFFSET(findlock);
|
||||
#if 0
|
||||
#ifdef NOT_USED
|
||||
item.tag.pid = pid;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user