wsrep_sst_rsync.sh remove some external comands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL patches by Codership |
New
|
Undecided
|
Unassigned |
Bug Description
$(cat $pid_file) === $(< $pid_file)
$(dirname $a) === ${a%/*}
$(basename $a) === ${a##*/}
cleanup_joiner() {
wsrep_log_info "Joiner cleanup."
[ -r "$RSYNC_PID" ] && localpid=$(< "$RSYNC_PID") && kill $PID && sleep 0.5 && kill -9 $PID >/dev/null 2>&1 || :
rm -rf "$RSYNC_CONF" "$MAGIC_FILE" "$RSYNC_PID"
wsrep_log_info "Joiner cleanup done."
if [ "${WSREP_
fi
}
check_pid - remove
TODO bsd/osx check
check_pid_
{
local rsync_port=$2
[ -r $1 ] && lsof -p $(< $1) -n -a -i :$rsync_port -a -c rsync
}
BINLOG_
BINLOG_
RSYNC_PORT=
if [ -z "$RSYNC_PORT" ]
then
fi