summaryrefslogtreecommitdiffstats
path: root/geo-replication/gsyncd.conf.in
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2019-05-08 10:56:31 +0530
committerAmar Tumballi <amarts@redhat.com>2019-05-17 07:47:53 +0000
commit072a21576a65b5b0b2597115280972376f076a91 (patch)
tree763f94786c63332f4b559bc353bab6ff9e69cc94 /geo-replication/gsyncd.conf.in
parent219c9bc92c721d49de78fd5a4d98aca7d3c66ad4 (diff)
geo-rep: Fix sync-method config
Problem: When 'use_tarssh' is set to true, it exits with successful message but the default 'rsync' was used as sync-engine. The new config 'sync-method' is not allowed to set from cli. Analysis and Fix: The 'use_tarssh' config is deprecated with new config framework and 'sync-method' is the new config to choose sync-method i.e. tarssh or rsync. This patch fixes the 'sync-method' config. The allowed values are tarssh and rsync. Backport of: > Patch: https://review.gluster.org/22683 > Change-Id: I0edb0319cad0455b29e49f2f08a64ce324735e84 > BUG: 1707686 > Signed-off-by: Kotresh HR <khiremat@redhat.com> Change-Id: I0edb0319cad0455b29e49f2f08a64ce324735e84 fixes: bz#1709737 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'geo-replication/gsyncd.conf.in')
-rw-r--r--geo-replication/gsyncd.conf.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/geo-replication/gsyncd.conf.in b/geo-replication/gsyncd.conf.in
index 6160c7c7091..c2e4f0dbdc1 100644
--- a/geo-replication/gsyncd.conf.in
+++ b/geo-replication/gsyncd.conf.in
@@ -128,10 +128,11 @@ value=
value=5
type=int
-[use-tarssh]
-value=false
-type=bool
-help=Use sync-mode as tarssh
+[sync-method]
+value=rsync
+help=Sync method for data sync. Available methods are tar over ssh and rsync. Default is rsync.
+validation=choice
+allowed_values=tarssh,rsync
[remote-gsyncd]
value =