summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-08-28 01:50:37 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-08-28 04:47:41 -0700
commit5c7fb40b7fc592c8eedeeb91a96d0d89fb7b38f9 (patch)
tree66e4f71dfcb05c32f79b195867a2cdafa38b34f8
parent3ff1dbc7ad46427f175e1592a63b14ad8493c350 (diff)
change the path to brickpath while creating the pidfile
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> 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
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.h b/xlators/mgmt/glusterd/src/glusterd.h
index f3e864a5f..50348cf13 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] = '-'; \