summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2014-03-29 06:59:39 -0700
committerAnand Avati <avati@redhat.com>2014-05-05 17:28:29 -0700
commit7fba3a88f1ced610eca0c23516a1e720d75160cd (patch)
tree245bc7bda320b7894a0f7806087175faaf1bbce7 /api
parent71ad38b3f86bdb0c4e9120b58ff451a6711ead9d (diff)
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 <avati@redhat.com> Reviewed-on: http://review.gluster.org/7543 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Diffstat (limited to 'api')
-rw-r--r--api/src/glfs.c4
1 files changed, 0 insertions, 4 deletions
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)