diff options
author | Kotresh HR <khiremat@redhat.com> | 2015-12-15 19:55:05 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2015-12-22 01:33:14 -0800 |
commit | d73f5c9eae0f5c8796598fa1930844c15c2c37d4 (patch) | |
tree | c55f4022ecfce5fe8df89e40e90b713c3798b95d | |
parent | 105dfa9f562b177a6faf4a0958e6d1b5840cee94 (diff) | |
download | glusterfs-d73f5c9eae0f5c8796598fa1930844c15c2c37d4.tar.gz glusterfs-d73f5c9eae0f5c8796598fa1930844c15c2c37d4.tar.xz glusterfs-d73f5c9eae0f5c8796598fa1930844c15c2c37d4.zip |
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 <khiremat@redhat.com>
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>
-rw-r--r-- | xlators/features/changelog/lib/src/gf-changelog.c | 4 |
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 5972e7052d..165703d3aa 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; |