From fc501a57bc595ec1d65fa466cfd7d34f28f2012b Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sat, 16 Feb 2013 22:51:10 +0530 Subject: Better mechanism to handle memory accounting Memory accounting will now be enabled if: 1) Any glusterfs process is spawned with argument --mem-accounting. 2) DEBUG is defined. Change-Id: I3345e114127a57ce61916be0e2c4e0049a4c3432 BUG: 834465 Signed-off-by: Vijay Bellur Reviewed-on: http://review.gluster.org/4523 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- cli/src/cli.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/src') diff --git a/cli/src/cli.c b/cli/src/cli.c index 082ba67c..37015c33 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -572,7 +572,9 @@ main (int argc, char *argv[]) if (!ctx) return ENOMEM; +#ifdef DEBUG gf_mem_acct_enable_set (ctx); +#endif ret = glusterfs_globals_init (ctx); if (ret) -- cgit