summaryrefslogtreecommitdiffstats
path: root/glusterfsd/src/glusterfsd.c
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-08-05 04:00:59 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-06 03:37:40 -0700
commite85069767b28fe12cf3dcc4ccf1a5cfc10753c4b (patch)
treea95b091bc59496463086baafcf48b0c14ec3ae07 /glusterfsd/src/glusterfsd.c
parentf9431f330e8f304e82d9b1443018987a926d56b6 (diff)
mem pool for call_stub_t
Ran posix compliance test and sanity test Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 329 (Replacing memory allocation functions with mem-type functions) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=329
Diffstat (limited to 'glusterfsd/src/glusterfsd.c')
-rw-r--r--glusterfsd/src/glusterfsd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 24c45219b01..6daeac1293e 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -71,7 +71,7 @@
#include "latency.h"
#include "glusterfsd-mem-types.h"
#include "syscall.h"
-
+#include "call-stub.h"
#include <fnmatch.h>
#ifdef GF_DARWIN_HOST_OS
@@ -594,6 +594,7 @@ cleanup_and_exit (int signum)
mem_pool_destroy (tmp_pool->frame_mem_pool);
mem_pool_destroy (tmp_pool->stack_mem_pool);
tmp_pool = NULL;
+ mem_pool_destroy (ctx->stub_mem_pool);
glusterfs_pidfile_cleanup (ctx);
@@ -791,6 +792,10 @@ glusterfs_ctx_defaults_init (glusterfs_ctx_t *ctx)
if (!pool->stack_mem_pool)
return -1;
+ ctx->stub_mem_pool = mem_pool_new (call_stub_t, 1024);
+ if (!ctx->stub_mem_pool)
+ return -1;
+
INIT_LIST_HEAD (&pool->all_frames);
LOCK_INIT (&pool->lock);
ctx->pool = pool;