Skip to content

Commit 04f92dd

Browse files
hartmut-mariadbNirbhay Choubey
authored andcommitted
MDEV-10853 netcat help output in error log when running xtrabackup SST
1 parent 81c13ac commit 04f92dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/wsrep_sst_xtrabackup-v2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ get_transfer()
175175
fi
176176
wsrep_log_info "Using netcat as streamer"
177177
if [[ "$WSREP_SST_OPT_ROLE" == "joiner" ]];then
178-
if nc -h | grep -q ncat;then
178+
if nc -h 2>&1 | grep -q ncat;then
179179
tcmd="nc -l ${TSST_PORT}"
180180
else
181181
tcmd="nc -dl ${TSST_PORT}"

scripts/wsrep_sst_xtrabackup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ get_transfer()
149149
fi
150150
wsrep_log_info "Using netcat as streamer"
151151
if [[ "$WSREP_SST_OPT_ROLE" == "joiner" ]];then
152-
if nc -h | grep -q ncat;then
152+
if nc -h 2>&1 | grep -q ncat;then
153153
tcmd="nc -l ${TSST_PORT}"
154154
else
155155
tcmd="nc -dl ${TSST_PORT}"

0 commit comments

Comments
 (0)