diff options
| -rw-r--r-- | geo-replication/syncdaemon/resource.py | 6 | ||||
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-geo-rep.c | 2 | 
2 files changed, 6 insertions, 2 deletions
diff --git a/geo-replication/syncdaemon/resource.py b/geo-replication/syncdaemon/resource.py index d284b8fb590..7daf7e49211 100644 --- a/geo-replication/syncdaemon/resource.py +++ b/geo-replication/syncdaemon/resource.py @@ -1003,7 +1003,8 @@ class SlaveRemote(object):              (boolify(gconf.sync_acls) and ['--acls'] or []) + \              ['.'] + list(args) -        if gconf.log_rsync_performance: +        if boolify(gconf.configinterface.get_realtime( +                "log_rsync_performance")):              # use stdout=PIPE only when log_rsync_performance enabled              # Else rsync will write to stdout and nobody is their              # to consume. If PIPE is full rsync hangs. @@ -1022,7 +1023,8 @@ class SlaveRemote(object):              for errline in stderr.strip().split("\n")[:-1]:                  logging.error("SYNC Error(Rsync): %s" % errline) -        if gconf.log_rsync_performance: +        if boolify(gconf.configinterface.get_realtime( +                "log_rsync_performance")):              rsync_msg = []              for line in stdout.split("\n"):                  if line.startswith("Number of files:") or \ diff --git a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c index a67dea1c9f0..9a702b70313 100644 --- a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c +++ b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c @@ -81,6 +81,8 @@ static char *gsync_reserved_opts[] = {  static char *gsync_no_restart_opts[] = {          "checkpoint", +        "log_rsync_performance", +        "log-rsync-performance",          NULL  };  | 
