From 5c7fb40b7fc592c8eedeeb91a96d0d89fb7b38f9 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Sat, 28 Aug 2010 01:50:37 +0000 Subject: change the path to brickpath while creating the pidfile Signed-off-by: Raghavendra Bhat Signed-off-by: Vijay Bellur BUG: 1409 (Gluster add brick fails if all the bricks are local) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1409 --- xlators/mgmt/glusterd/src/glusterd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/mgmt/glusterd/src/glusterd.h b/xlators/mgmt/glusterd/src/glusterd.h index f3e864a5f6e..50348cf1326 100644 --- a/xlators/mgmt/glusterd/src/glusterd.h +++ b/xlators/mgmt/glusterd/src/glusterd.h @@ -184,7 +184,7 @@ typedef ssize_t (*gd_serialize_t) (struct iovec outmsg, void *args); #define GLUSTERD_GET_BRICK_PIDFILE(pidfile,volpath,hostname,brickpath) { \ int i = 0; \ char exp_path[PATH_MAX] = {0,}; \ - for (i = 0; i < strlen (path); i++) { \ + for (i = 0; i < strlen (brickpath); i++) { \ exp_path[i] = brickpath[i]; \ if (exp_path[i] == '/') \ exp_path[i] = '-'; \ -- cgit