mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-07 21:09:14 +00:00
Test for stacktrace file existence before calling pt-pmp (fixes bug 945836)
This commit is contained in:
@@ -361,7 +361,11 @@ main() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "--stack traces--"
|
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--"
|
echo "--oprofile--"
|
||||||
if [ ! -e "${BASEDIR}/${PREFIX}-opreport" ]; then
|
if [ ! -e "${BASEDIR}/${PREFIX}-opreport" ]; then
|
||||||
|
Reference in New Issue
Block a user