summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2015-12-15 19:55:05 +0530
committerVenky Shankar <vshankar@redhat.com>2015-12-30 04:24:46 -0800
commita37ea8462cfd87f30bc38c509f0a079aae14e797 (patch)
tree6c1520939a51ab2ae3b6c226423f2752e7c0caff
parent8a9a532fd141a5456fea9729abf4273bd653cc39 (diff)
libgfchangelog: Allocate logbuf_pool in master xlator
The master xlator needs to allocate 'logbuf_pool' else 'gf_msg' fails with EINVAL. BUG: 1293595 Change-Id: I51a1895b5ff9c8eaf6cc15a9cacc415fa8cd7bdd Reviewed-on: http://review.gluster.org/12997 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Venky Shankar <vshankar@redhat.com> Signed-off-by: Kotresh HR <khiremat@redhat.com> Reviewed-on: http://review.gluster.org/13064 Reviewed-by: Aravinda VK <avishwan@redhat.com>
-rw-r--r--xlators/features/changelog/lib/src/gf-changelog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/features/changelog/lib/src/gf-changelog.c b/xlators/features/changelog/lib/src/gf-changelog.c
index 874ffd0d13b..bc953369343 100644
--- a/xlators/features/changelog/lib/src/gf-changelog.c
+++ b/xlators/features/changelog/lib/src/gf-changelog.c
@@ -136,6 +136,10 @@ gf_changelog_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;