summaryrefslogtreecommitdiff
path: root/innobase/mem
diff options
context:
space:
mode:
authormarko@hundin.mysql.fi <>2004-04-07 14:19:26 +0300
committermarko@hundin.mysql.fi <>2004-04-07 14:19:26 +0300
commit253bf9861b06da3ea132aadfd5e1a60e7d9c3c2f (patch)
tree2f1cb9f7307ff2cede7e13d739760692e11dcaaf /innobase/mem
parent44a6fcba2f357b3f74bde8673046b310ecfd6645 (diff)
downloadmariadb-git-253bf9861b06da3ea132aadfd5e1a60e7d9c3c2f.tar.gz
InnoDB: Remove debug functions unless #ifdef UNIV_DEBUG
Diffstat (limited to 'innobase/mem')
-rw-r--r--innobase/mem/mem0dbg.c2
-rw-r--r--innobase/mem/mem0pool.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/innobase/mem/mem0dbg.c b/innobase/mem/mem0dbg.c
index 92c1235220e..6c97ef9eb8e 100644
--- a/innobase/mem/mem0dbg.c
+++ b/innobase/mem/mem0dbg.c
@@ -375,6 +375,7 @@ mem_hash_remove(
}
#endif /* UNIV_MEM_DEBUG */
+#ifdef UNIV_DEBUG
/*******************************************************************
Checks a memory heap for consistency and prints the contents if requested.
Outputs the sum of sizes of buffers given to the user (only in
@@ -585,6 +586,7 @@ mem_heap_validate(
return(TRUE);
}
+#endif /* UNIV_DEBUG */
#ifdef UNIV_MEM_DEBUG
/*********************************************************************
diff --git a/innobase/mem/mem0pool.c b/innobase/mem/mem0pool.c
index 9a5d16cd4a2..3c409e3fceb 100644
--- a/innobase/mem/mem0pool.c
+++ b/innobase/mem/mem0pool.c
@@ -566,6 +566,7 @@ mem_area_free(
ut_ad(mem_pool_validate(pool));
}
+#ifdef UNIV_DEBUG
/************************************************************************
Validates a memory pool. */
@@ -643,6 +644,7 @@ mem_pool_print_info(
pool->reserved);
mutex_exit(&(pool->mutex));
}
+#endif /* UNIV_DEBUG */
/************************************************************************
Returns the amount of reserved memory. */