277 changed files with 2048 additions and 1500 deletions
-
4client/mysqlbinlog.cc
-
11extra/mariabackup/xtrabackup.cc
-
3extra/wolfssl/CMakeLists.txt
-
7include/ilist.h
-
2include/my_atomic_wrapper.h
-
2include/my_counter.h
-
2include/span.h
-
18mysql-test/include/ctype_casefolding.inc
-
48mysql-test/main/ctype_ldml.result
-
25mysql-test/main/ctype_ldml.test
-
8mysql-test/main/ctype_uca.result
-
174mysql-test/main/ctype_utf8_uca.result
-
29mysql-test/main/ctype_utf8_uca.test
-
174mysql-test/main/ctype_utf8mb4_uca.result
-
29mysql-test/main/ctype_utf8mb4_uca.test
-
32mysql-test/main/delete.result
-
41mysql-test/main/delete.test
-
120mysql-test/main/multi_update.result
-
70mysql-test/main/multi_update.test
-
12mysql-test/main/update_use_source.result
-
23mysql-test/suite/galera/r/MDEV-24143.result
-
18mysql-test/suite/galera/r/galera_bf_abort_get_lock.result
-
20mysql-test/suite/galera/t/MDEV-24143.test
-
36mysql-test/suite/galera/t/galera_bf_abort_get_lock.test
-
12mysql-test/suite/mariabackup/full_backup_win.result
-
24mysql-test/suite/mariabackup/full_backup_win.test
-
5mysql-test/suite/plugins/r/locales.result
-
1mysql-test/suite/plugins/t/locales.test
-
12mysql-test/suite/rpl/r/rpl_delayed_parallel_slave_sbm.result
-
17mysql-test/suite/rpl/t/rpl_delayed_parallel_slave_sbm.test
-
2mysys/charset.c
-
2mysys_ssl/my_crypt.cc
-
8plugin/handler_socket/handlersocket/database.cpp
-
6plugin/handler_socket/handlersocket/database.hpp
-
2plugin/handler_socket/handlersocket/hstcpsvr.hpp
-
2plugin/handler_socket/handlersocket/hstcpsvr_worker.hpp
-
2plugin/handler_socket/libhsclient/hstcpcli.hpp
-
2plugin/handler_socket/libhsclient/util.hpp
-
2plugin/query_response_time/query_response_time.cc
-
6plugin/type_inet/sql_type_inet.h
-
8plugin/versioning/versioning.cc
-
2sql/derived_handler.h
-
8sql/event_data_objects.cc
-
2sql/event_db_repository.h
-
8sql/field.h
-
19sql/filesort_utils.h
-
2sql/gcalc_slicescan.h
-
2sql/group_by_handler.h
-
24sql/handler.h
-
2sql/hash_filo.h
-
3sql/hostname.cc
-
20sql/item.h
-
2sql/item_buff.cc
-
55sql/item_cmpfunc.h
-
688sql/item_create.cc
-
32sql/item_create.h
-
2sql/item_func.cc
-
5sql/item_func.h
-
220sql/item_geofunc.cc
-
4sql/item_subselect.cc
-
2sql/item_subselect.h
-
2sql/item_sum.h
-
10sql/log.cc
-
12sql/log.h
-
6sql/log_event.cc
-
31sql/log_event.h
-
14sql/mdl.cc
-
8sql/mdl.h
-
2sql/multi_range_read.h
-
2sql/my_apc.h
-
6sql/my_json_writer.h
-
17sql/mysqld.cc
-
23sql/opt_range.cc
-
4sql/opt_range.h
-
4sql/opt_table_elimination.cc
-
6sql/parse_file.h
-
2sql/partition_element.h
-
2sql/partition_info.h
-
2sql/protocol.h
-
4sql/rowid_filter.h
-
4sql/rpl_injector.cc
-
2sql/rpl_injector.h
-
2sql/semisync_master.h
-
2sql/semisync_master_ack_receiver.h
-
2sql/semisync_slave.h
-
2sql/session_tracker.h
-
6sql/set_var.h
-
10sql/share/errmsg-utf8.txt
-
15sql/slave.cc
-
2sql/sp.h
-
66sql/sp_head.h
-
32sql/spatial.h
-
15sql/sql_acl.cc
-
12sql/sql_acl.h
-
24sql/sql_admin.h
-
15sql/sql_alter.h
-
2sql/sql_base.cc
-
2sql/sql_base.h
-
2sql/sql_bitmap.h
-
14sql/sql_cache.h
@ -0,0 +1,18 @@ |
|||
CREATE OR REPLACE TABLE case_folding AS SELECT 0 AS code, SPACE(32) AS c LIMIT 0; |
|||
SHOW CREATE TABLE case_folding; |
|||
# Uncode code points that have a variable length case mapping in utf8 |
|||
# (e.g. LOWER('2-byte-character') -> '3-byte-character' |
|||
INSERT INTO case_folding (code) VALUES |
|||
(0x23A), |
|||
(0x23E), |
|||
(0x23F), |
|||
(0x240), |
|||
(0x250), |
|||
(0x251), |
|||
(0x252), |
|||
(0x26B), |
|||
(0x271), |
|||
(0x27D); |
|||
UPDATE case_folding SET c=CHAR(code USING ucs2); |
|||
SELECT HEX(code), HEX(LOWER(c)), HEX(UPPER(c)), c FROM case_folding; |
|||
DROP TABLE case_folding; |
|||
@ -1,23 +0,0 @@ |
|||
connection node_2; |
|||
connection node_1; |
|||
CREATE TABLE t1 (c1 BIGINT NOT NULL PRIMARY KEY, c2 BINARY (10), c3 DATETIME); |
|||
SELECT get_lock ('test2', 0); |
|||
get_lock ('test2', 0) |
|||
1 |
|||
DROP TABLE t1; |
|||
CREATE TABLE t1 (c1 SMALLINT NOT NULL AUTO_INCREMENT PRIMARY KEY); |
|||
INSERT INTO t1 VALUES (1); |
|||
SET SESSION wsrep_trx_fragment_size=10; |
|||
SET SESSION autocommit=0; |
|||
SELECT * FROM t1 WHERE c1 <=0 ORDER BY c1 DESC; |
|||
c1 |
|||
INSERT INTO t1 VALUES (4),(3),(1),(2); |
|||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction |
|||
CREATE TABLE t1 (pk INT PRIMARY KEY, b INT) ENGINE=SEQUENCE; |
|||
ERROR 42S01: Table 't1' already exists |
|||
ALTER TABLE t1 DROP COLUMN c2; |
|||
ERROR 42000: Can't DROP COLUMN `c2`; check that it exists |
|||
SELECT get_lock ('test', 1.5); |
|||
get_lock ('test', 1.5) |
|||
1 |
|||
DROP TABLE t1; |
|||
@ -1,18 +0,0 @@ |
|||
connection node_2; |
|||
connection node_1; |
|||
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB; |
|||
connection node_2a; |
|||
SELECT GET_LOCK("foo", 1000); |
|||
GET_LOCK("foo", 1000) |
|||
1 |
|||
connection node_2; |
|||
SET AUTOCOMMIT=OFF; |
|||
INSERT INTO t1 VALUES (1); |
|||
SELECT GET_LOCK("foo", 1000);; |
|||
connection node_1; |
|||
INSERT INTO t1 VALUES (1); |
|||
connection node_2; |
|||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction |
|||
wsrep_local_aborts_increment |
|||
1 |
|||
DROP TABLE t1; |
|||
@ -1,20 +0,0 @@ |
|||
--source include/galera_cluster.inc |
|||
--source include/have_sequence.inc |
|||
|
|||
CREATE TABLE t1 (c1 BIGINT NOT NULL PRIMARY KEY, c2 BINARY (10), c3 DATETIME); |
|||
SELECT get_lock ('test2', 0); |
|||
DROP TABLE t1; |
|||
CREATE TABLE t1 (c1 SMALLINT NOT NULL AUTO_INCREMENT PRIMARY KEY); |
|||
INSERT INTO t1 VALUES (1); |
|||
SET SESSION wsrep_trx_fragment_size=10; |
|||
SET SESSION autocommit=0; |
|||
SELECT * FROM t1 WHERE c1 <=0 ORDER BY c1 DESC; |
|||
--error ER_LOCK_DEADLOCK |
|||
INSERT INTO t1 VALUES (4),(3),(1),(2); |
|||
--error ER_TABLE_EXISTS_ERROR |
|||
CREATE TABLE t1 (pk INT PRIMARY KEY, b INT) ENGINE=SEQUENCE; |
|||
--error ER_CANT_DROP_FIELD_OR_KEY |
|||
ALTER TABLE t1 DROP COLUMN c2; |
|||
SELECT get_lock ('test', 1.5); |
|||
DROP TABLE t1; |
|||
|
|||
@ -1,36 +0,0 @@ |
|||
--source include/galera_cluster.inc |
|||
--source include/have_innodb.inc |
|||
|
|||
# |
|||
# Test a local transaction being aborted by a slave one while it is running a GET_LOCK() |
|||
# |
|||
|
|||
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB; |
|||
|
|||
--let $galera_connection_name = node_2a |
|||
--let $galera_server_number = 2 |
|||
--source include/galera_connect.inc |
|||
--connection node_2a |
|||
SELECT GET_LOCK("foo", 1000); |
|||
|
|||
--connection node_2 |
|||
SET AUTOCOMMIT=OFF; |
|||
--let $wsrep_local_bf_aborts_before = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_bf_aborts'` |
|||
INSERT INTO t1 VALUES (1); |
|||
--send SELECT GET_LOCK("foo", 1000); |
|||
|
|||
--connection node_1 |
|||
INSERT INTO t1 VALUES (1); |
|||
|
|||
--connection node_2 |
|||
--error ER_LOCK_DEADLOCK |
|||
--reap |
|||
|
|||
--let $wsrep_local_bf_aborts_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_bf_aborts'` |
|||
|
|||
# Check that wsrep_local_bf_aborts has been incremented by exactly 1 |
|||
--disable_query_log |
|||
--eval SELECT $wsrep_local_bf_aborts_after - $wsrep_local_bf_aborts_before = 1 AS wsrep_local_aborts_increment; |
|||
--enable_query_log |
|||
|
|||
DROP TABLE t1; |
|||
@ -0,0 +1,12 @@ |
|||
# |
|||
# MDEV-30492 Crash when use mariabackup.exe with config 'innodb_flush_method=async_unbuffered' |
|||
# |
|||
# xtrabackup backup |
|||
# xtrabackup prepare |
|||
# shutdown server |
|||
# remove datadir |
|||
# xtrabackup move back |
|||
# restart |
|||
# |
|||
# End of 10.4 tests |
|||
# |
|||
@ -0,0 +1,24 @@ |
|||
--source include/windows.inc |
|||
|
|||
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup; |
|||
|
|||
--echo # |
|||
--echo # MDEV-30492 Crash when use mariabackup.exe with config 'innodb_flush_method=async_unbuffered' |
|||
--echo # |
|||
|
|||
echo # xtrabackup backup; |
|||
--disable_result_log |
|||
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --innodb_flush_method=normal --backup --target-dir=$targetdir; |
|||
--enable_result_log |
|||
|
|||
echo # xtrabackup prepare; |
|||
--disable_result_log |
|||
exec $XTRABACKUP --prepare --innodb-flush-method=async_unbuffered --target-dir=$targetdir; |
|||
-- source include/restart_and_restore.inc |
|||
--enable_result_log |
|||
|
|||
rmdir $targetdir; |
|||
|
|||
--echo # |
|||
--echo # End of 10.4 tests |
|||
--echo # |
|||
688
sql/item_create.cc
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue