From 7fba3a88f1ced610eca0c23516a1e720d75160cd Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sat, 29 Mar 2014 06:59:39 -0700 Subject: mem-accounting: enable memory accounting by default memory accounting are constant time operations which involve a few pointer dereferences and integer increments (no loops or searches etc.) benefits of having memory usage info outweigh the minor accounting overheads Change-Id: If9bc6db5ffd0e00f0fd64b2f6eed094bf3543996 BUG: 1089216 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/7543 Tested-by: Gluster Build System Reviewed-by: Harshavardhana --- api/src/glfs.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'api/src/glfs.c') diff --git a/api/src/glfs.c b/api/src/glfs.c index b69d785a8ab..cefbc645eb3 100644 --- a/api/src/glfs.c +++ b/api/src/glfs.c @@ -522,10 +522,6 @@ glfs_new (const char *volname) return NULL; } -#ifdef DEBUG - gf_mem_acct_enable_set (ctx); -#endif - /* first globals init, for gf_mem_acct_enable_set () */ ret = glusterfs_globals_init (ctx); if (ret) -- cgit