summaryrefslogtreecommitdiffstats
path: root/geo-replication
diff options
context:
space:
mode:
authorKotresh H R <khiremat@redhat.com>2014-05-15 12:52:22 +0530
committerVenky Shankar <vshankar@redhat.com>2014-05-15 01:21:04 -0700
commita20b6b473bf72224b0ea7752987d47d44b8b633c (patch)
tree8e9dc533ea7899448c0d7ae4aaa4ddac786a6d14 /geo-replication
parent745347c8a2374442b8be69c7245d585289541e1b (diff)
gsyncd/geo-rep: Fix remote vol info fetching for non-root
Signed-off-by: Kotresh H R <khiremat@redhat.com> Change-Id: If1d2cab3fcfe2391105551e54f0b9729a7c204e4 BUG: 1077452 Reviewed-on: http://review.gluster.org/7767 Reviewed-by: Venky Shankar <vshankar@redhat.com> Tested-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'geo-replication')
-rw-r--r--geo-replication/syncdaemon/monitor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/geo-replication/syncdaemon/monitor.py b/geo-replication/syncdaemon/monitor.py
index c44735ffb3d..0c90997880f 100644
--- a/geo-replication/syncdaemon/monitor.py
+++ b/geo-replication/syncdaemon/monitor.py
@@ -267,7 +267,7 @@ def distribute(*resources):
sbricks = {'host': 'localhost', 'dir': si.path}
suuid = uuid.uuid5(uuid.NAMESPACE_URL, slave.get_url(canonical=True))
elif isinstance(si, GLUSTER):
- svol = Volinfo(si.volume, si.host)
+ svol = Volinfo(si.volume, slave.remote_addr)
sbricks = svol.bricks
suuid = svol.uuid
else: