From c4f3e37b0c21af3ddeac6422e9c99ffea6599726 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Fri, 13 Mar 2020 20:33:20 +0100 Subject: [PATCH] fix a race condition in the perfschema.transaction_nested_events --- .../perfschema/include/transaction_nested_events_verifier.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/suite/perfschema/include/transaction_nested_events_verifier.inc b/mysql-test/suite/perfschema/include/transaction_nested_events_verifier.inc index 1e6c3a8dfcf..baee5e840a5 100644 --- a/mysql-test/suite/perfschema/include/transaction_nested_events_verifier.inc +++ b/mysql-test/suite/perfschema/include/transaction_nested_events_verifier.inc @@ -13,7 +13,7 @@ let $wait_timeout= 10; let $wait_condition= SELECT COUNT(*) > 0 FROM performance_schema.threads WHERE THREAD_ID = @con1_thread_id - AND (PROCESSLIST_STATE = 'Sleep' OR PROCESSLIST_STATE IS NULL); + AND PROCESSLIST_COMMAND = 'Sleep'; --source include/wait_condition.inc if(!$success) {