Commit 100da38a authored by unknown's avatar unknown

Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-5.1-bug18198

into  dator3.(none):/home/mikael/mysql_clones/bug18198

parents 8e6769b0 dd0c20ac
...@@ -1408,7 +1408,6 @@ select user,db from information_schema.processlist; ...@@ -1408,7 +1408,6 @@ select user,db from information_schema.processlist;
user db user db
user3148 test user3148 test
drop user user3148@localhost; drop user user3148@localhost;
DROP TABLE IF EXISTS thread_status;
DROP TABLE IF EXISTS server_status; DROP TABLE IF EXISTS server_status;
DROP EVENT IF EXISTS event_status; DROP EVENT IF EXISTS event_status;
SET GLOBAL event_scheduler=1; SET GLOBAL event_scheduler=1;
...@@ -1417,26 +1416,16 @@ ON SCHEDULE AT NOW() ...@@ -1417,26 +1416,16 @@ ON SCHEDULE AT NOW()
ON COMPLETION NOT PRESERVE ON COMPLETION NOT PRESERVE
DO DO
BEGIN BEGIN
CREATE TABLE thread_status
SELECT variable_name, variable_value
FROM information_schema.session_status
WHERE variable_name LIKE 'SSL_ACCEPTS' OR
variable_name LIKE 'SSL_CALLBACK_CACHE_HITS';
CREATE TABLE server_status CREATE TABLE server_status
SELECT variable_name SELECT variable_name
FROM information_schema.global_status FROM information_schema.global_status
WHERE variable_name LIKE 'ABORTED_CONNECTS' OR WHERE variable_name LIKE 'ABORTED_CONNECTS' OR
variable_name LIKE 'BINLOG_CACHE_DISK_USE'; variable_name LIKE 'BINLOG_CACHE_DISK_USE';
END$$ END$$
SELECT variable_name, variable_value FROM thread_status;
variable_name variable_value
SSL_ACCEPTS 0.0000000
SSL_CALLBACK_CACHE_HITS 0.0000000
SELECT variable_name FROM server_status; SELECT variable_name FROM server_status;
variable_name variable_name
ABORTED_CONNECTS ABORTED_CONNECTS
BINLOG_CACHE_DISK_USE BINLOG_CACHE_DISK_USE
DROP TABLE thread_status;
DROP TABLE server_status; DROP TABLE server_status;
SET GLOBAL event_scheduler=0; SET GLOBAL event_scheduler=0;
End of 5.1 tests. End of 5.1 tests.
...@@ -51,3 +51,25 @@ SSL error: Unable to get private key from '' ...@@ -51,3 +51,25 @@ SSL error: Unable to get private key from ''
mysqltest: Could not open connection 'default': 2026 SSL connection error mysqltest: Could not open connection 'default': 2026 SSL connection error
SSL error: Unable to get certificate from '' SSL error: Unable to get certificate from ''
mysqltest: Could not open connection 'default': 2026 SSL connection error mysqltest: Could not open connection 'default': 2026 SSL connection error
End of 5.0 tests
DROP TABLE IF EXISTS thread_status;
DROP EVENT IF EXISTS event_status;
SET GLOBAL event_scheduler=1;
CREATE EVENT event_status
ON SCHEDULE AT NOW()
ON COMPLETION NOT PRESERVE
DO
BEGIN
CREATE TABLE thread_status
SELECT variable_name, variable_value
FROM information_schema.session_status
WHERE variable_name LIKE 'SSL_ACCEPTS' OR
variable_name LIKE 'SSL_CALLBACK_CACHE_HITS';
END$$
SELECT variable_name, variable_value FROM thread_status;
variable_name variable_value
SSL_ACCEPTS 0.0000000
SSL_CALLBACK_CACHE_HITS 0.0000000
DROP TABLE thread_status;
SET GLOBAL event_scheduler=0;
End of 5.1 tests
...@@ -1042,16 +1042,13 @@ select user,db from information_schema.processlist; ...@@ -1042,16 +1042,13 @@ select user,db from information_schema.processlist;
connection default; connection default;
drop user user3148@localhost; drop user user3148@localhost;
# #
# Bug #26174 Server Crash: INSERT ... SELECT ... FROM I_S.GLOBAL_STATUS in Event # Bug #26174 Server Crash: INSERT ... SELECT ... FROM I_S.GLOBAL_STATUS
# in Event (see also openssl_1.test)
# #
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS thread_status;
DROP TABLE IF EXISTS server_status; DROP TABLE IF EXISTS server_status;
DROP EVENT IF EXISTS event_status; DROP EVENT IF EXISTS event_status;
--enable_warnings --enable_warnings
SET GLOBAL event_scheduler=1; SET GLOBAL event_scheduler=1;
...@@ -1063,12 +1060,6 @@ CREATE EVENT event_status ...@@ -1063,12 +1060,6 @@ CREATE EVENT event_status
ON COMPLETION NOT PRESERVE ON COMPLETION NOT PRESERVE
DO DO
BEGIN BEGIN
CREATE TABLE thread_status
SELECT variable_name, variable_value
FROM information_schema.session_status
WHERE variable_name LIKE 'SSL_ACCEPTS' OR
variable_name LIKE 'SSL_CALLBACK_CACHE_HITS';
CREATE TABLE server_status CREATE TABLE server_status
SELECT variable_name SELECT variable_name
FROM information_schema.global_status FROM information_schema.global_status
...@@ -1079,15 +1070,11 @@ END$$ ...@@ -1079,15 +1070,11 @@ END$$
DELIMITER ;$$ DELIMITER ;$$
let $wait_condition=select count(*) = 0 from information_schema.events where event_name='event_status'; let $wait_condition=select count(*) = 0 from information_schema.events where event_name='event_status';
let $wait_timeout=30;
--source include/wait_condition.inc --source include/wait_condition.inc
SELECT variable_name, variable_value FROM thread_status;
SELECT variable_name FROM server_status; SELECT variable_name FROM server_status;
DROP TABLE thread_status;
DROP TABLE server_status; DROP TABLE server_status;
SET GLOBAL event_scheduler=0; SET GLOBAL event_scheduler=0;
--echo End of 5.1 tests. --echo End of 5.1 tests.
...@@ -96,4 +96,41 @@ drop table t1; ...@@ -96,4 +96,41 @@ drop table t1;
--error 1 --error 1
--exec $MYSQL_TEST --ssl-cert= --max-connect-retries=1 < $MYSQLTEST_VARDIR/tmp/test.sql 2>&1 --exec $MYSQL_TEST --ssl-cert= --max-connect-retries=1 < $MYSQLTEST_VARDIR/tmp/test.sql 2>&1
--echo End of 5.0 tests
#
# Bug #26174 Server Crash: INSERT ... SELECT ... FROM I_S.GLOBAL_STATUS in
# Event (see also information_schema.test for the other part of test for
# this bug).
#
--disable_warnings
DROP TABLE IF EXISTS thread_status;
DROP EVENT IF EXISTS event_status;
--enable_warnings
SET GLOBAL event_scheduler=1;
DELIMITER $$;
CREATE EVENT event_status
ON SCHEDULE AT NOW()
ON COMPLETION NOT PRESERVE
DO
BEGIN
CREATE TABLE thread_status
SELECT variable_name, variable_value
FROM information_schema.session_status
WHERE variable_name LIKE 'SSL_ACCEPTS' OR
variable_name LIKE 'SSL_CALLBACK_CACHE_HITS';
END$$
DELIMITER ;$$
let $wait_condition=select count(*) = 0 from information_schema.events where event_name='event_status';
--source include/wait_condition.inc
SELECT variable_name, variable_value FROM thread_status;
DROP TABLE thread_status;
SET GLOBAL event_scheduler=0;
--echo End of 5.1 tests
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment