summaryrefslogtreecommitdiffstats
path: root/cli/src/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r--cli/src/cli.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c
index ad70696e258..127d6340f8d 100644
--- a/cli/src/cli.c
+++ b/cli/src/cli.c
@@ -71,7 +71,7 @@
#include "event.h"
#include "globals.h"
#include "syscall.h"
-
+#include "call-stub.h"
#include <fnmatch.h>
extern int connected;
@@ -221,6 +221,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;