git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: baeab89)
Conditionalize variable that is only used conditionally, to avoid warning.
2003年11月27日 18:12:50 +0000 (18:12 +0000)
2003年11月27日 18:12:50 +0000 (18:12 +0000)

diff --git a/src/backend/storage/buffer/freelist.c b/src/backend/storage/buffer/freelist.c
index 84bcb1554d1957fd5d6db299a52bf46bb830698e..554d73dc9f8228cb7d7dfa2c9f9c65a2056b31cd 100644 (file)
--- a/src/backend/storage/buffer/freelist.c
+++ b/src/backend/storage/buffer/freelist.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.36 2003年11月19日 15:55:07 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.37 2003年11月27日 18:12:50 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -694,7 +694,9 @@ void
StrategyInvalidateBuffer(BufferDesc *buf)
{
int cdb_id;
+#ifdef USE_ASSERT_CHECKING
int buf_id;
+#endif
BufferStrategyCDB *cdb;
/* The buffer cannot be dirty or pinned */
@@ -705,7 +707,7 @@ StrategyInvalidateBuffer(BufferDesc *buf)
* If we have the buffer somewhere in the directory, remove it,
* add the CDB to the list of unused CDB's. and the buffer to
* the list of free buffers
- */
+ */
cdb_id = BufTableLookup(&(buf->tag));
if (cdb_id >= 0)
{
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /