Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9190ef

Browse files
committed
Conditionalize variable that is only used conditionally, to avoid warning.
1 parentbaeab89 commitc9190ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/backend/storage/buffer/freelist.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.36 2003/11/19 15:55:07 wieck Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.37 2003/11/27 18:12:50 petere Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -694,7 +694,9 @@ void
694694
StrategyInvalidateBuffer(BufferDesc*buf)
695695
{
696696
intcdb_id;
697+
#ifdefUSE_ASSERT_CHECKING
697698
intbuf_id;
699+
#endif
698700
BufferStrategyCDB*cdb;
699701

700702
/* The buffer cannot be dirty or pinned */
@@ -705,7 +707,7 @@ StrategyInvalidateBuffer(BufferDesc *buf)
705707
* If we have the buffer somewhere in the directory, remove it,
706708
* add the CDB to the list of unused CDB's. and the buffer to
707709
* the list of free buffers
708-
*/
710+
*/
709711
cdb_id=BufTableLookup(&(buf->tag));
710712
if (cdb_id >=0)
711713
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp