mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
edd792fe12
- Moved some code from innodb_plugin to xtradb, to ensure that all tests runs - Did changes in pbxt and maria storage engines becasue of changes in thd->query - Reverted wrong code in sql_table.cc for how ROW_FORMAT is used. Todo before joining with main 5.1 tree: - Join test fails (Igor to investigate) - mysql-test-run shows warnings from tests; Some suppression rule is not working (Kristian to investiage) - Run through all buildbots sql/sql_table.cc: Reverted code for ROW_FORMAT is used. We must set the HA_CREATE_USED_ROW_FORMAT flag in alter table to signal the handler that it should not change row_type in update_create_info() (as happens for SHOW CREATE). storage/maria/ha_maria.cc: Update for change in defintion of thd->query storage/myisam/mi_check.c: Simplify code storage/pbxt/src/discover_xt.cc: Update for change in defintion of thd->query storage/xtradb/dict/dict0dict.c: Update for change in defintion of thd->query storage/xtradb/handler/ha_innodb.cc: Copy some critical changes from innodb_plugin to get tests to pass storage/xtradb/handler/ha_innodb.h: Copy some critical changes from innodb_plugin to get tests to pass storage/xtradb/handler/handler0alter.cc: Copy some critical changes from innodb_plugin to get tests to pass
33 lines
852 B
Text
33 lines
852 B
Text
CREATE DATABASE federated;
|
|
CREATE DATABASE federated;
|
|
#
|
|
# Bug#47525: MySQL crashed (Federated)
|
|
#
|
|
# Switch to slave
|
|
CREATE TABLE t1(a INT);
|
|
INSERT INTO t1 VALUES (1);
|
|
# Switch to master
|
|
CREATE TABLE t1(a INT) ENGINE=FEDERATED
|
|
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/test/t1';
|
|
SELECT * FROM t1;
|
|
a
|
|
1
|
|
# Start a asynchronous reload
|
|
# Wait for tables to be closed
|
|
# Timeout in include/wait_show_condition.inc for
|
|
# show_statement : SHOW STATUS LIKE 'Open_tables'
|
|
# field : Value
|
|
# condition : = '0'
|
|
# max_run_time : 31
|
|
# Ensure that the server didn't crash
|
|
SELECT * FROM t1;
|
|
a
|
|
1
|
|
# Drop tables on master and slave
|
|
DROP TABLE t1;
|
|
DROP TABLE t1;
|
|
# Federated cleanup
|
|
DROP TABLE IF EXISTS federated.t1;
|
|
DROP DATABASE IF EXISTS federated;
|
|
DROP TABLE IF EXISTS federated.t1;
|
|
DROP DATABASE IF EXISTS federated;
|