-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-33031 Assertion failure upon reading from performance schema wit…
…h binlog enabled same assertion with spider. spider status variables didn't expect to be queried from a different thread without LOCK_thd_data. And they didn't expect to be queried under LOCK_thd_data either (because spider_get_trx() calls thd_set_ha_data()).
- Loading branch information
Showing
4 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
storage/spider/mysql-test/spider/bugfix/r/perfschema.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# MDEV-33031 Assertion failure upon reading from performance schema with binlog enabled | ||
# | ||
connect foo,localhost,root; | ||
select variable_name, variable_value from performance_schema.status_by_thread | ||
where variable_name like '%spider_direct_aggregate%'; | ||
variable_name variable_value | ||
Spider_direct_aggregate 0 | ||
Spider_direct_aggregate 0 | ||
disconnect foo; | ||
connection default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--performance-schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
disable_query_log; | ||
source ../../include/init_spider.inc; | ||
enable_query_log; | ||
|
||
--echo # | ||
--echo # MDEV-33031 Assertion failure upon reading from performance schema with binlog enabled | ||
--echo # | ||
connect foo,localhost,root; | ||
select variable_name, variable_value from performance_schema.status_by_thread | ||
where variable_name like '%spider_direct_aggregate%'; | ||
disconnect foo; | ||
connection default; | ||
|
||
disable_query_log; | ||
source ../../include/deinit_spider.inc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters