From 933f60796d69686a153659c7b178dbd1475f9cb6 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Wed, 7 May 2014 18:03:34 +0530 Subject: libgfchangelog: memory accounting intialization Needed as memory accounting turned ON by default now. Without this, GF_{CALLOC,MALLOC} calls assert. Change-Id: Ie54a6efb61871e70d4f7c796d9c86a867051e2e0 BUG: 1094708 Signed-off-by: Venky Shankar Reviewed-on: http://review.gluster.org/7698 Reviewed-by: Kotresh HR --- xlators/features/changelog/lib/src/gf-changelog.c | 3 +++ 1 file changed, 3 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 0827f2cac6c..f74d8effe95 100644 --- a/xlators/features/changelog/lib/src/gf-changelog.c +++ b/xlators/features/changelog/lib/src/gf-changelog.c @@ -23,6 +23,7 @@ #include "globals.h" #include "glusterfs.h" #include "logging.h" +#include "defaults.h" #include "gf-changelog-helpers.h" @@ -65,6 +66,8 @@ __attribute__ ((constructor)) gf_changelog_ctor (void) } THIS->ctx = ctx; + if (xlator_mem_acct_init (THIS, gf_changelog_mt_end)) + return; } void -- cgit