mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-02-27 02:00:57 +08:00
RM-1554 - Percona Toolkit 3.7.1
- Added additional pre-requisite for 5.7 in t/pt-stalk/pt-2289.t
This commit is contained in:
@@ -46,6 +46,12 @@ sub cleanup {
|
||||
|
||||
cleanup();
|
||||
|
||||
# We need to enable transaction instrumentation in 5.7
|
||||
if ( $sandbox_version eq '5.7' ) {
|
||||
$dbh->do("UPDATE performance_schema.setup_instruments SET enabled = 'YES'"
|
||||
. ", timed='YES' WHERE NAME IN ('transaction')");
|
||||
}
|
||||
|
||||
# We need these to collect lock-waits
|
||||
sub start_thread_pt_1897_1 {
|
||||
# this must run in a thread because we need to have an active session
|
||||
@@ -257,6 +263,11 @@ like(
|
||||
|
||||
cleanup();
|
||||
diag(`rm -rf $dest 2>/dev/null`);
|
||||
if ( $sandbox_version eq '5.7' ) {
|
||||
$dbh->do("UPDATE performance_schema.setup_instruments SET enabled = 'NO'"
|
||||
. ", timed='NO' WHERE NAME IN ('transaction')");
|
||||
}
|
||||
|
||||
$sb->wipe_clean($dbh);
|
||||
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
||||
done_testing;
|
||||
|
||||
Reference in New Issue
Block a user