forked from mysql/mysql-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step-3: Introduce the new performance schema table and a new mutex ------------------------------------------------------------------ DBUG_SIGNAL_WAIT_FOR was moved away from sql/rpl_slave.h. A global mutex (LOCK_collect_instance_log) was created to protect against concurrent attempts to collect the instance logs information. Added JSON support as an output field in a performance schema table. Added the new performance schema table (instance_log_status). Added a test case to query the new performance schema table. Added perfschema specific test cases and updated test.pfs_check_proc() signature.
- Loading branch information
Joao Gramacho
committed
Dec 13, 2017
1 parent
38bdab5
commit 798ab78
Showing
26 changed files
with
698 additions
and
67 deletions.
There are no files selected for viewing
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
11 changes: 11 additions & 0 deletions
11
mysql-test/suite/perfschema/r/ddl_instance_log_status.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 @@ | ||
ALTER TABLE performance_schema.instance_log_status | ||
ADD COLUMN foo integer; | ||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' | ||
TRUNCATE TABLE performance_schema.instance_log_status; | ||
ERROR 42000: DROP command denied to user 'root'@'localhost' for table 'instance_log_status' | ||
ALTER TABLE performance_schema.instance_log_status | ||
ADD INDEX test_index(server_uuid); | ||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' | ||
CREATE UNIQUE INDEX test_index ON | ||
performance_schema.instance_log_status(server_uuid); | ||
ERROR 42000: Access denied for user 'root'@'localhost' to database '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
19 changes: 19 additions & 0 deletions
19
mysql-test/suite/perfschema/r/dml_instance_log_status.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,19 @@ | ||
SELECT * FROM performance_schema.instance_log_status | ||
LIMIT 1; | ||
INSERT INTO performance_schema.instance_log_status | ||
SET server_uuid='ABC123'; | ||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'instance_log_status' | ||
UPDATE performance_schema.instance_log_status | ||
SET server_uuid='ABC123' WHERE server_uuid=@@server_uuid; | ||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'instance_log_status' | ||
DELETE FROM performance_schema.instance_log_status | ||
WHERE server_uuid=@@server_uuid; | ||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'instance_log_status' | ||
DELETE FROM performance_schema.instance_log_status; | ||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'instance_log_status' | ||
LOCK TABLES performance_schema.instance_log_status READ; | ||
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'instance_log_status' | ||
UNLOCK TABLES; | ||
LOCK TABLES performance_schema.instance_log_status WRITE; | ||
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'instance_log_status' | ||
UNLOCK TABLES; |
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
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
Oops, something went wrong.