PT-2322 - pt-mysql-summary does not detect jemalloc.

- Added fix and test case. Fix checks for end of word (space or newline) instead of space.
This commit is contained in:
Sveta Smirnova
2025-08-29 15:09:12 +03:00
parent 05b7efcd27
commit 0d0e7210f7
6 changed files with 938 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
plan 46
plan 47
. "$LIB_DIR/alt_cmds.sh"
. "$LIB_DIR/log_warn_die.sh"
@@ -824,6 +824,12 @@ no_diff \
"$samples/expected_output_ps-5.1-martin.txt" \
"section_percona_server_features works on 5.1"
report_jemalloc_enabled "$samples/mysqld-instances-pt-2322" "$samples/mysql-variables-pt-2322" > "$PT_TMPDIR/got"
no_diff \
"$PT_TMPDIR/got" \
"$samples/expected_output_pt-2322.txt" \
"PT-2322: report_jemalloc_enabled works"
# ###########################################################################
# Done
# ###########################################################################