summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker/utils/syncdaemon/monitor.py
diff options
context:
space:
mode:
authorCsaba Henk <csaba@redhat.com>2012-02-29 10:21:09 +0100
committerVijay Bellur <vijay@gluster.com>2012-03-01 09:28:20 -0800
commit532f2d36e72b4e30984e437ca5a3507de5e897d9 (patch)
tree0f6e5b79e7bf97cfa2bd76be5a5f4300e16fcf91 /xlators/features/marker/utils/syncdaemon/monitor.py
parent662958b584e7e3dff7610ec79fe4f5b9aa9a4f21 (diff)
geo-rep / syncdaemon: make the timeout for establishing the connection to slave configurable
It can be set through the connection-timeout tunable but we keep it hidden, intended as a workaround for some special scenarios not for general use. Change-Id: I31f9fa3873afa7babc2106ee34484123a01bdc57 BUG: 789078 Signed-off-by: Csaba Henk <csaba@redhat.com> Reviewed-on: http://review.gluster.com/2840 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/features/marker/utils/syncdaemon/monitor.py')
-rw-r--r--xlators/features/marker/utils/syncdaemon/monitor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/monitor.py b/xlators/features/marker/utils/syncdaemon/monitor.py
index f58aa592c9f..056a47f7193 100644
--- a/xlators/features/marker/utils/syncdaemon/monitor.py
+++ b/xlators/features/marker/utils/syncdaemon/monitor.py
@@ -54,7 +54,7 @@ class Monitor(object):
if os.WIFEXITED(s):
return os.WEXITSTATUS(s)
return 1
- conn_timeout = 60
+ conn_timeout = int(gconf.connection_timeout)
while ret in (0, 1):
logging.info('-' * conn_timeout)
logging.info('starting gsyncd worker')