Created
April 14, 2016 07:42
-
-
Save abg/1cd3da7c138e15a980d7c3bd77477b01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ ! -z $WSREP_SST_OPT_BINLOG ]];then | |
BINLOG_DIRNAME=$(dirname $WSREP_SST_OPT_BINLOG) | |
BINLOG_FILENAME=$(basename $WSREP_SST_OPT_BINLOG) | |
# To avoid comparing data directory and BINLOG_DIRNAME | |
mv $DATA/${BINLOG_FILENAME}.* $BINLOG_DIRNAME/ 2>/dev/null || true | |
pushd $BINLOG_DIRNAME &>/dev/null | |
for bfiles in $(ls -1 ${BINLOG_FILENAME}.[0-9]*);do | |
echo ${BINLOG_DIRNAME}/${bfiles} >> ${BINLOG_FILENAME}.index | |
done | |
popd &> /dev/null | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment