Browse Source

MDEV-10853 netcat help output in error log when running xtrabackup SST

pull/351/head
Hartmut Holzgraefe 9 years ago
committed by Nirbhay Choubey
parent
commit
c9ded859a6
  1. 2
      scripts/wsrep_sst_xtrabackup-v2.sh
  2. 2
      scripts/wsrep_sst_xtrabackup.sh

2
scripts/wsrep_sst_xtrabackup-v2.sh

@ -175,7 +175,7 @@ get_transfer()
fi
wsrep_log_info "Using netcat as streamer"
if [[ "$WSREP_SST_OPT_ROLE" == "joiner" ]];then
if nc -h | grep -q ncat;then
if nc -h 2>&1 | grep -q ncat;then
tcmd="nc -l ${TSST_PORT}"
else
tcmd="nc -dl ${TSST_PORT}"

2
scripts/wsrep_sst_xtrabackup.sh

@ -149,7 +149,7 @@ get_transfer()
fi
wsrep_log_info "Using netcat as streamer"
if [[ "$WSREP_SST_OPT_ROLE" == "joiner" ]];then
if nc -h | grep -q ncat;then
if nc -h 2>&1 | grep -q ncat;then
tcmd="nc -l ${TSST_PORT}"
else
tcmd="nc -dl ${TSST_PORT}"

Loading…
Cancel
Save