Skip to content

Commit

Permalink
Merge pull request #834 from percona/update_modules_for_pt-stalk
Browse files Browse the repository at this point in the history
Updated modules for pt-stalk after fix in lib/bash/collect.sh
  • Loading branch information
svetasmirnova authored Jul 1, 2024
2 parents 252ec73 + e50f267 commit 8e723b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pt-stalk
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ collect() {
collect_mysql_data_one() {
if [ ! "$OPT_MYSQL_ONLY" ]; then
port=$($CMD_MYSQL $EXT_ARGV -ss -e 'SELECT @@port')
mysqld_pid=$(lsof -i ":${port}" | grep -i listen | cut -f 3 -d" ")
mysqld_pid=$(lsof -i ":${port}" | grep -i listen | tr -s ' ' | cut -f 2 -d" ")
fi

if [ "$CMD_PMAP" -a "$mysqld_pid" ]; then
Expand Down

0 comments on commit 8e723b9

Please sign in to comment.