summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-02-14 16:42:03 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-02-14 14:31:54 -0800
commit248a1b7d387832dd97f43eb74b8b9d168292f3a0 (patch)
treeeb88a250fe7808ba15725f56724757cf491f2512
parent741ce91b89cf221f8be94168e1d04916cc2f3204 (diff)
syncdaemon: use "ping" message instead of "__version__" to wait for remote to come up
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2424 (Starting gsyncd with --debug : AttributeError: type object 'FILEServer' has no attribute '__version__') URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2424
-rw-r--r--xlators/features/marker/utils/syncdaemon/resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py
index afafd54143a..1005e408680 100644
--- a/xlators/features/marker/utils/syncdaemon/resource.py
+++ b/xlators/features/marker/utils/syncdaemon/resource.py
@@ -428,7 +428,7 @@ class SSH(AbstractUrl, SlaveRemote):
# in daemon), we just do a an ad-hoc linear put/get.
i, o = ret
inf = os.fdopen(i)
- repce.send(o, None, '__version__')
+ repce.send(o, None, 'ping')
select.select((inf,), (), ())
repce.recv(inf)
# hack hack hack: store a global reference to the file