From a37ea8462cfd87f30bc38c509f0a079aae14e797 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Tue, 15 Dec 2015 19:55:05 +0530 Subject: 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 Tested-by: Gluster Build System Reviewed-by: Venky Shankar Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/13064 Reviewed-by: Aravinda VK --- xlators/features/changelog/lib/src/gf-changelog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/features/changelog') 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; -- cgit