Skip to content

Commit

Permalink
Add priority to USEMYSQLFULLPROCESSLIST
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyskapunk committed Aug 12, 2022
1 parent f689f0e commit cf057d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/core/mysql
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ print_mysql_innodb_status() {
log INFO "Ended 'mysql innodb' report"
}

# Print the output of "mysqladmin [full] processlist" to the mysql file
# Print the output of "mysql [full] processlist" to the mysql file
print_mysql_procs() {
local LOGFILE="$1"
local MYCNF="$2"
Expand Down
7 changes: 3 additions & 4 deletions src/recap
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,12 @@ run_mysql_report() {
print_mysql "${ITEM_FILE}" "${MYCNF}"

# check to see if the optional mysql process list should be generated
if [[ "${USEMYSQLPROCESSLIST,,}" == "yes" ]]; then
print_blankline "${ITEM_FILE}"
print_mysql_procs "${ITEM_FILE}" "${MYCNF}"
fi
if [[ "${USEMYSQLFULLPROCESSLIST,,}" == "yes" ]]; then
print_blankline "${ITEM_FILE}"
print_mysql_procs "${ITEM_FILE}" "${MYCNF}" "FULL"
elif [[ "${USEMYSQLPROCESSLIST,,}" == "yes" ]]; then
print_blankline "${ITEM_FILE}"
print_mysql_procs "${ITEM_FILE}" "${MYCNF}"
fi
if [[ "${USEINNODB,,}" == "yes" ]]; then
# send df -h output to output file
Expand Down
2 changes: 1 addition & 1 deletion src/recap.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Can be set to yes or no depending on whether or not the output of "mysqladmin pr

.IP \fBUSEMYSQLFULLPROCESSLIST\fR
.br
Can be set to yes or no depending on whether or not the output of "mysqladmin -v processlist" command should be recorded. This report requires that USEMYSQL be set to "yes". This option makes use of MYSQL_PROCESS_LIST, to produce the output vertical or in a table. This output is written in
Can be set to yes or no depending on whether or not the output of "mysqladmin -v processlist" command should be recorded. This report requires that USEMYSQL be set to "yes". This option takes priority over USEMYSQLPROCESSLIST. This option makes use of MYSQL_PROCESS_LIST, to produce the output vertical or in a table. This output is written in
.IR ${BASEDIR}/mysql.log
(default: no)

Expand Down

0 comments on commit cf057d7

Please sign in to comment.