diff options
author | Venky Shankar <vshankar@redhat.com> | 2014-05-07 18:03:34 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2014-05-08 04:24:07 -0700 |
commit | 933f60796d69686a153659c7b178dbd1475f9cb6 (patch) | |
tree | e45cb74662960cd1c09593a2580111501d12565f /xlators/features | |
parent | 281d95cb7d53069158eae99392e9e7863c8850fd (diff) |
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 <vshankar@redhat.com>
Reviewed-on: http://review.gluster.org/7698
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/changelog/lib/src/gf-changelog.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |