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-store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-store.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c index 68d621571e0..db26bbf2c10 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.c +++ b/xlators/mgmt/glusterd/src/glusterd-store.c @@ -1444,7 +1444,7 @@ glusterd_retrieve_uuid () goto out; } - uuid_parse (uuid_str, MY_UUID); + uuid_parse (uuid_str, priv->uuid); out: if (uuid_str) -- cgit