Retry metadata locks. Add --plugin to make testing this easier. Print --statistics in cleanup tasks. Add a helper script for myself: sandbox/set-mysql.

This commit is contained in:
Daniel Nichter
2013-02-28 12:29:17 -07:00
parent b1e54cce8e
commit 5b56f8fccc
7 changed files with 555 additions and 546 deletions

23
sandbox/set-mysql Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
if [ ! -d "$HOME/mysql-bin" ]; then
echo "$HOME/mysql-bin does not exist." >&2
exit 1
fi
VER=$1
if [ "$VER" ]; then
if [ "$VER" != "4.1" -a "$VER" != "5.0" -a "$VER" != "5.1" -a "$VER" != "5.5" -a "$VER" != "5.6" ]; then
echo "VERSION must be 4.1, 5.0, 5.1, 5.5, or 5.6. Or, do not specify a version to select all available versions." >&2
exit 1
fi
else
VER='';
fi
select choice in $(ls -d $HOME/mysql-bin/mysql-$VER* | sort -r); do
echo "export PERCONA_TOOLKIT_SANDBOX=$choice"
break
done
exit