Comment 1 for bug 1070916

Revision history for this message
Daniel Nichter (daniel-nichter) wrote : Re: pt-mysql-summary may get the wrong cnf file

Before:

not ok 15 - collect_mysql_info.t ps-mysqld-005.txt port 12345 (bug 1070916)
# Failed '"/tmp/12347/my.sandbox.cnf" == ""'

Problem was:

   if test -n "$port" && grep -- "/mysqld.*--port=$port" "${file}" >/dev/null 2>&1 ; then

If a port was given but it wasn't found, then it just used the first MySQL instance whose cnf would then be reported. So in this test case port 12345's cnf is searched for, but not found, so the first instance is used, 12347, which creates a false-positive.