Browse Source

MDEV-7903 : xtrabackup SST failing with maria-10.0-galera

Remove master-bin.state file on joiner node during SST.
pull/104/head mariadb-galera-10.0.20
Nirbhay Choubey 11 years ago
parent
commit
5467b12dc3
  1. 3
      scripts/wsrep_sst_xtrabackup-v2.sh

3
scripts/wsrep_sst_xtrabackup-v2.sh

@ -785,6 +785,7 @@ then
wsrep_log_info "Cleaning the binlog directory $binlog_dir as well"
find $binlog_dir -maxdepth 1 -type f -regex $pattern -exec rm -fv {} 1>&2 \+
rm $binlog_dir/*.index || true
rm $binlog_dir/*.state || true
fi
fi
@ -870,7 +871,7 @@ then
mv $DATA/${BINLOG_FILENAME}.* $BINLOG_DIRNAME/ 2>/dev/null || true
pushd $BINLOG_DIRNAME &>/dev/null
for bfiles in $(ls -1 ${BINLOG_FILENAME}.*);do
for bfiles in $(ls -1 ${BINLOG_FILENAME}.[0-9]*);do
echo ${BINLOG_DIRNAME}/${bfiles} >> ${BINLOG_FILENAME}.index
done
popd &> /dev/null

Loading…
Cancel
Save