summaryrefslogtreecommitdiff
path: root/innobase/mem/mem0pool.c
diff options
context:
space:
mode:
authorunknown <heikki@donna.mysql.fi>2001-09-20 21:04:48 +0300
committerunknown <heikki@donna.mysql.fi>2001-09-20 21:04:48 +0300
commit31fd0c63e04c416af61036d2e1f4e5e6f9ea877d (patch)
tree93ddcb5cf7eb5dcc4666dd6f0700e66f31fff260 /innobase/mem/mem0pool.c
parentc66208cfbf2726a2c9fe6eed9f4d71e2fff5dfbd (diff)
downloadmariadb-git-31fd0c63e04c416af61036d2e1f4e5e6f9ea877d.tar.gz
mem0mem.ic Changes to eliminate unnecessary Purify warnings
ut0mem.h Changes to eliminate unnecessary Purify warnings ut0mem.ic Changes to eliminate unnecessary Purify warnings srv0start.c Changes to eliminate unnecessary Purify warnings mem0pool.c Changes to eliminate unnecessary Purify warnings ut0mem.c Changes to eliminate unnecessary Purify warnings innobase/ut/ut0mem.c: Changes to eliminate unnecessary Purify warnings innobase/mem/mem0pool.c: Changes to eliminate unnecessary Purify warnings innobase/srv/srv0start.c: Changes to eliminate unnecessary Purify warnings innobase/include/ut0mem.h: Changes to eliminate unnecessary Purify warnings innobase/include/ut0mem.ic: Changes to eliminate unnecessary Purify warnings innobase/include/mem0mem.ic: Changes to eliminate unnecessary Purify warnings
Diffstat (limited to 'innobase/mem/mem0pool.c')
-rw-r--r--innobase/mem/mem0pool.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/innobase/mem/mem0pool.c b/innobase/mem/mem0pool.c
index e8c02d812c4..6c3a4adebae 100644
--- a/innobase/mem/mem0pool.c
+++ b/innobase/mem/mem0pool.c
@@ -170,7 +170,11 @@ mem_pool_create(
pool = ut_malloc(sizeof(mem_pool_t));
- pool->buf = ut_malloc(size);
+ /* We do not set the memory to zero (FALSE) in the pool,
+ but only when allocated at a higher level in mem0mem.c.
+ This is to avoid masking useful Purify warnings. */
+
+ pool->buf = ut_malloc_low(size, FALSE);
pool->size = size;
mutex_create(&(pool->mutex));