mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
merge with 5.1
This commit is contained in:
@ -15,6 +15,8 @@ max_heap_table_size= 1M
|
||||
|
||||
loose-skip-innodb
|
||||
loose-skip-pbxt
|
||||
loose-skip-feedback
|
||||
loose-feedback-user-info= mysql-test
|
||||
|
||||
loose-innodb_data_file_path= ibdata1:10M:autoextend
|
||||
|
||||
|
13
mysql-test/r/feedback_plugin_install.result
Normal file
13
mysql-test/r/feedback_plugin_install.result
Normal file
@ -0,0 +1,13 @@
|
||||
install plugin feedback soname 'feedback.so';
|
||||
select plugin_status from information_schema.plugins where plugin_name='feedback';
|
||||
plugin_status
|
||||
ACTIVE
|
||||
select * from information_schema.feedback where variable_name like 'feed%'
|
||||
and variable_name not like '%_uid';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
FEEDBACK 1.0
|
||||
FEEDBACK_SEND_RETRY_WAIT 60
|
||||
FEEDBACK_SEND_TIMEOUT 60
|
||||
FEEDBACK_URL http://mariadb.org/feedback_plugin/post
|
||||
FEEDBACK_USER_INFO mysql-test
|
||||
uninstall plugin feedback;
|
11
mysql-test/r/feedback_plugin_load.result
Normal file
11
mysql-test/r/feedback_plugin_load.result
Normal file
@ -0,0 +1,11 @@
|
||||
select plugin_status from information_schema.plugins where plugin_name='feedback';
|
||||
plugin_status
|
||||
ACTIVE
|
||||
select * from information_schema.feedback where variable_name like 'feed%'
|
||||
and variable_name not like '%_uid';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
FEEDBACK 1.0
|
||||
FEEDBACK_SEND_RETRY_WAIT 60
|
||||
FEEDBACK_SEND_TIMEOUT 60
|
||||
FEEDBACK_URL http://mariadb.org/feedback_plugin/post
|
||||
FEEDBACK_USER_INFO mysql-test
|
15
mysql-test/r/feedback_plugin_send.result
Normal file
15
mysql-test/r/feedback_plugin_send.result
Normal file
@ -0,0 +1,15 @@
|
||||
select plugin_status from information_schema.plugins where plugin_name='feedback';
|
||||
plugin_status
|
||||
ACTIVE
|
||||
select * from information_schema.feedback where variable_name like 'feed%'
|
||||
and variable_name not like '%_uid';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
FEEDBACK 1.0
|
||||
FEEDBACK_SEND_RETRY_WAIT 60
|
||||
FEEDBACK_SEND_TIMEOUT 60
|
||||
FEEDBACK_URL http://mariadb.org/feedback_plugin/post
|
||||
FEEDBACK_USER_INFO mysql-test
|
||||
feedback plugin: report to 'http://mariadb.org/feedback_plugin/post' was sent
|
||||
feedback plugin: server replied 'ok'
|
||||
feedback plugin: report to 'http://mariadb.org/feedback_plugin/post' was sent
|
||||
feedback plugin: server replied 'ok'
|
1
mysql-test/t/feedback_plugin_install.opt
Normal file
1
mysql-test/t/feedback_plugin_install.opt
Normal file
@ -0,0 +1 @@
|
||||
--loose-feedback
|
15
mysql-test/t/feedback_plugin_install.test
Normal file
15
mysql-test/t/feedback_plugin_install.test
Normal file
@ -0,0 +1,15 @@
|
||||
--source include/not_embedded.inc
|
||||
|
||||
if (`select length('$FEEDBACK_SO') = 0`) {
|
||||
skip No feedback plugin;
|
||||
}
|
||||
|
||||
--replace_regex /\.dll/.so/
|
||||
eval install plugin feedback soname '$FEEDBACK_SO';
|
||||
select plugin_status from information_schema.plugins where plugin_name='feedback';
|
||||
--replace_result https http
|
||||
--sorted_result
|
||||
select * from information_schema.feedback where variable_name like 'feed%'
|
||||
and variable_name not like '%_uid';
|
||||
uninstall plugin feedback;
|
||||
|
2
mysql-test/t/feedback_plugin_load.opt
Normal file
2
mysql-test/t/feedback_plugin_load.opt
Normal file
@ -0,0 +1,2 @@
|
||||
--loose-feedback
|
||||
--plugin-load=$FEEDBACK_SO
|
10
mysql-test/t/feedback_plugin_load.test
Normal file
10
mysql-test/t/feedback_plugin_load.test
Normal file
@ -0,0 +1,10 @@
|
||||
if (`select count(*) = 0 from information_schema.plugins where plugin_name = 'feedback' and plugin_status='active'`)
|
||||
{
|
||||
--skip Feedback plugin is not active
|
||||
}
|
||||
|
||||
select plugin_status from information_schema.plugins where plugin_name='feedback';
|
||||
--replace_result https http
|
||||
--sorted_result
|
||||
select * from information_schema.feedback where variable_name like 'feed%'
|
||||
and variable_name not like '%_uid';
|
24
mysql-test/t/feedback_plugin_send.test
Normal file
24
mysql-test/t/feedback_plugin_send.test
Normal file
@ -0,0 +1,24 @@
|
||||
source t/feedback_plugin_load.test;
|
||||
source include/big_test.inc;
|
||||
|
||||
if (!$MTR_FEEDBACK_PLUGIN) {
|
||||
skip MTR_FEEDBACK_PLUGIN is not set;
|
||||
}
|
||||
|
||||
#
|
||||
# Yep. The plugin waits 5 minutes before sending anything,
|
||||
# and there's no way to force it to send anything sooner.
|
||||
# Let's wait, and hope that mtr is started with --parallel and
|
||||
# is doing some work in other workers.
|
||||
#
|
||||
sleep 310;
|
||||
source include/restart_mysqld.inc;
|
||||
|
||||
replace_result https http;
|
||||
perl;
|
||||
$log_error= $ENV{'MYSQLTEST_VARDIR'} . '/log/mysqld.1.err';
|
||||
open(LOG, '<', $log_error) or die "open(< $log_error): $!";
|
||||
/feedback plugin:.*/ && print "$&\n" while $_=<LOG>;
|
||||
close LOG;
|
||||
EOF
|
||||
|
@ -3,7 +3,8 @@
|
||||
#
|
||||
# BUG#39746 - Debug flag breaks struct definition (server crash)
|
||||
#
|
||||
INSTALL PLUGIN simple_parser SONAME 'mypluglib.so';
|
||||
--replace_result .dll .so
|
||||
eval INSTALL PLUGIN simple_parser SONAME '$MYPLUGLIB_SO';
|
||||
CREATE TABLE t1(a TEXT, b TEXT, FULLTEXT(a) WITH PARSER simple_parser);
|
||||
ALTER TABLE t1 ADD FULLTEXT(b) WITH PARSER simple_parser;
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user