Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
4f4fccec
Commit
4f4fccec
authored
Mar 11, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix perfschema.statement_program_concurrency
parent
0e04beb2
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100013 additions
and
3 deletions
+100013
-3
mysql-test/std_data/wl5766_data.txt
mysql-test/std_data/wl5766_data.txt
+100000
-0
mysql-test/suite/perfschema/r/statement_program_concurrency.result
...t/suite/perfschema/r/statement_program_concurrency.result
+13
-3
No files found.
mysql-test/std_data/wl5766_data.txt
0 → 100644
View file @
4f4fccec
This diff is collapsed.
Click to expand it.
mysql-test/suite/perfschema/r/statement_program_concurrency.result
View file @
4f4fccec
...
...
@@ -4,6 +4,7 @@ TRUNCATE TABLE performance_schema.events_statements_history;
CREATE DATABASE db1;
CREATE DATABASE db2;
CREATE DATABASE db3;
connect con1,localhost,root,,db1;
USE db1;
CREATE TABLE t1(
i INT NOT NULL
...
...
@@ -14,6 +15,7 @@ BEGIN
INSERT INTO t1 SELECT * FROM t1;
END|
CALL proc();;
connect con2,localhost,root,,db2;
USE db2;
CREATE TABLE t2(
i INT NOT NULL
...
...
@@ -25,6 +27,7 @@ INSERT INTO t2 SELECT * FROM t2;
RETURN x+y;
END|
SELECT addition(1234,9876);;
connect con3,localhost,root,,db3;
USE db3;
CREATE TABLE t(
i INT NOT NULL,
...
...
@@ -38,8 +41,12 @@ INSERT INTO t VALUES ( 10,1000 );
CREATE TRIGGER trg AFTER INSERT ON t FOR EACH ROW
INSERT INTO t3 SELECT * FROM t3;
INSERT INTO t VALUES ( 20,2000);;
connection con1;
connection con2;
addition(1234,9876)
11110
connection con3;
connection default;
SELECT OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, COUNT_STAR, COUNT_STATEMENTS
FROM performance_schema.events_statements_summary_by_program
WHERE OBJECT_SCHEMA='db1' OR OBJECT_SCHEMA='db2' OR OBJECT_SCHEMA='db3'
...
...
@@ -76,8 +83,8 @@ INSERT INTO t2 SELECT * FROM t2;
RETURN x+y;
END db2 NULL NULL NULL NULL 0
statement/sql/select SELECT addition(1234,9876) db2 NULL NULL NULL NULL 0
statement/sp/stmt INSERT INTO t2 SELECT * FROM t2 db2 FUNCTION db2 addition
TRANSACTION
1
statement/sp/freturn NULL db2 FUNCTION db2 addition
TRANSACTION
1
statement/sp/stmt INSERT INTO t2 SELECT * FROM t2 db2 FUNCTION db2 addition
STATEMENT
1
statement/sp/freturn NULL db2 FUNCTION db2 addition
STATEMENT
1
statement/sql/change_db USE db3 db3 NULL NULL NULL NULL 0
statement/sql/create_table CREATE TABLE t(
i INT NOT NULL,
...
...
@@ -91,7 +98,7 @@ statement/sql/insert INSERT INTO t VALUES ( 10,1000 ) db3 NULL NULL NULL NULL 0
statement/sql/create_trigger CREATE TRIGGER trg AFTER INSERT ON t FOR EACH ROW
INSERT INTO t3 SELECT * FROM t3 db3 NULL NULL NULL NULL 0
statement/sql/insert INSERT INTO t VALUES ( 20,2000) db3 NULL NULL NULL NULL 0
statement/sp/stmt INSERT INTO t3 SELECT * FROM t3 db3 TRIGGER db3 trg
TRANSACTION
1
statement/sp/stmt INSERT INTO t3 SELECT * FROM t3 db3 TRIGGER db3 trg
STATEMENT
1
TRUNCATE TABLE performance_schema.events_statements_summary_by_program;
TRUNCATE TABLE performance_schema.events_statements_history;
# Clean-up
...
...
@@ -105,3 +112,6 @@ DROP TABLE db3.t;
DROP DATABASE db1;
DROP DATABASE db2;
DROP DATABASE db3;
disconnect con1;
disconnect con2;
disconnect con3;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment