summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli/src/cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c
index 4f4813bae76..53c9c3b297b 100644
--- a/cli/src/cli.c
+++ b/cli/src/cli.c
@@ -146,6 +146,10 @@ glusterfs_ctx_defaults_init (glusterfs_ctx_t *ctx)
if (!ctx->dict_data_pool)
return -1;
+ ctx->logbuf_pool = mem_pool_new (log_buf_t, 256);
+ if (!ctx->logbuf_pool)
+ return -1;
+
INIT_LIST_HEAD (&pool->all_frames);
LOCK_INIT (&pool->lock);
ctx->pool = pool;