summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/mem-pool.c
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2011-02-21 12:11:59 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-02-21 10:24:47 -0800
commit2795f3e03a299daf88e3172b068511d41c493247 (patch)
tree89d98fe83a7e3b30a21fffb218ec3c4cbbae9e51 /libglusterfs/src/mem-pool.c
parentc47961cc18f7bbc1b46e1cdf5662b8ec409065e5 (diff)
libglusterfs: Enable assert() and memory accounting with DEBUG
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2447 (Enable assert () and memory accounting with DEBUG) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2447
Diffstat (limited to 'libglusterfs/src/mem-pool.c')
-rw-r--r--libglusterfs/src/mem-pool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libglusterfs/src/mem-pool.c b/libglusterfs/src/mem-pool.c
index 76b62902317..a8eb985b8a8 100644
--- a/libglusterfs/src/mem-pool.c
+++ b/libglusterfs/src/mem-pool.c
@@ -51,6 +51,11 @@ gf_mem_acct_enable_set ()
char *opt = NULL;
long val = -1;
+#ifdef DEBUG
+ gf_mem_acct_enable = 1;
+ return;
+#endif
+
opt = getenv (GLUSTERFS_ENV_MEM_ACCT_STR);
if (!opt)