From d73f5c9eae0f5c8796598fa1930844c15c2c37d4 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. Change-Id: I6b2d3450250de7e77126d12b75b0dbc4db414bfb BUG: 1292463 Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/12997 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Venky Shankar --- xlators/features/changelog/lib/src/gf-changelog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators') diff --git a/xlators/features/changelog/lib/src/gf-changelog.c b/xlators/features/changelog/lib/src/gf-changelog.c index 5972e7052d8..165703d3aa6 100644 --- a/xlators/features/changelog/lib/src/gf-changelog.c +++ b/xlators/features/changelog/lib/src/gf-changelog.c @@ -137,6 +137,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