From 1877c8ea84adfc6c8943bba806e410de5eba84a7 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 13 Jun 2012 14:24:52 +0530 Subject: mgmt/glusterd: fix the infinite loop in lazy uuid generation * This is how the lazy uuid generation leads to infinite loop of function calls. MY_UUID -> glusterd_uuid_init -> glusterd_retrieve_uuid -> MY_UUID * Also while starting glusterd if valgrind option is not given in the volfile, then reset the ret variable to 0. Change-Id: Ief719f436d8a264a591ee6aefc6da3c0f6c75e8f BUG: 811493 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.com/3564 Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Jeff Darcy Reviewed-by: Vijay Bellur --- xlators/mgmt/glusterd/src/glusterd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd.c') diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index 766c926b8..0dfffbbed 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -987,6 +987,8 @@ init (xlator_t *this) } INIT_LIST_HEAD (&conf->mount_specs); + + ret = 0; dict_foreach (this->options, _install_mount_spec, &ret); if (ret) goto out; -- cgit