From d49b4b1086119873664b77ea7d7f2a5dd8f671ee Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Wed, 1 Jul 2015 14:47:48 +0530 Subject: glusterd: initialize the daemon services on demand As of now all the daemon services are initialized at glusterD init path. Since socket file path of per node daemon demands the uuid of the node, MY_UUID macro is invoked as part of the initialization. The above flow breaks the usecases where a gluster image is built following a template could be Dockerfile, Vagrantfile or any kind of virtualization environment. This means bringing instances of this image would have same UUIDs for the node resulting in peer probe failure. Solution is to lazily initialize the services on demand. Change-Id: If7caa533026c83e98c7c7678bded67085d0bbc1e BUG: 1238135 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/11488 Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Gaurav Kumar Garg Reviewed-by: Kaushal M --- xlators/mgmt/glusterd/src/glusterd-snapd-svc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-snapd-svc.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-snapd-svc.h b/xlators/mgmt/glusterd/src/glusterd-snapd-svc.h index 055ee47d0a0..40dae848f58 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapd-svc.h +++ b/xlators/mgmt/glusterd/src/glusterd-snapd-svc.h @@ -21,6 +21,9 @@ struct glusterd_snapdsvc_{ gf_store_handle_t *handle; }; +void +glusterd_snapdsvc_build (glusterd_svc_t *svc); + int glusterd_snapdsvc_init (void *data); -- cgit