Test for stacktrace file existence before calling pt-pmp (fixes bug 945836)

This commit is contained in:
baron@percona.com
2012-03-04 15:05:08 -08:00
parent e8ff918ba1
commit efc037a8e3

View File

@@ -361,7 +361,11 @@ main() {
done
echo "--stack traces--"
$PR_pmp -l 5 "${BASEDIR}/${PREFIX}-stacktrace" | head -n 5
if [ -e "${BASEDIR}/${PREFIX}-stacktrace" ]; then
$PR_pmp -l 5 "${BASEDIR}/${PREFIX}-stacktrace" | head -n 5
else
echo " No stack trace file exists"
fi
echo "--oprofile--"
if [ ! -e "${BASEDIR}/${PREFIX}-opreport" ]; then