mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.8' into 10.9
This commit is contained in:
@@ -63,13 +63,13 @@ INSERT INTO t1 VALUES (4, 'AAA');
|
||||
UPDATE t1 set msg = "ddd" where id = 2;
|
||||
DELETE FROM t1 WHERE id= 3;
|
||||
SET DEBUG_SYNC = 'now SIGNAL go_ahead';
|
||||
SET DEBUG_SYNC = 'RESET';
|
||||
|
||||
connection default;
|
||||
|
||||
--error ER_DUP_ENTRY
|
||||
reap;
|
||||
|
||||
SET DEBUG_SYNC = 'RESET';
|
||||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
|
@@ -304,3 +304,14 @@ SET SESSION foreign_key_checks=TRUE;
|
||||
SHOW CREATE TABLE t1;
|
||||
CREATE TABLE t2(d INT)ENGINE=InnoDB;
|
||||
DROP TABLE t2, t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-28400 Leak in trx_mod_time_t::start_bulk_insert
|
||||
--echo #
|
||||
|
||||
SET SESSION foreign_key_checks=0;
|
||||
CREATE TABLE t1 (a INT) ENGINE=InnoDB PARTITION BY HASH(a) PARTITIONS 2;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
ALTER TABLE t1 REBUILD PARTITION p0;
|
||||
# Cleanup
|
||||
DROP TABLE t1;
|
||||
|
@@ -5,12 +5,8 @@
|
||||
-- echo #
|
||||
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_innodb_max_16k.inc
|
||||
# restart does not work with embedded
|
||||
-- source include/not_embedded.inc
|
||||
# This test is slow on buildbot.
|
||||
--source include/big_test.inc
|
||||
--source include/have_sequence.inc
|
||||
|
||||
CREATE TABLE t (a INT) ENGINE=INNODB STATS_PERSISTENT=0;
|
||||
|
||||
@@ -28,29 +24,10 @@ AND update_time IS NOT NULL;
|
||||
SELECT COUNT(*) FROM information_schema.tables WHERE table_name = 't'
|
||||
AND TIMESTAMPDIFF(SECOND, update_time, NOW()) < 120;
|
||||
|
||||
CREATE TEMPORARY TABLE big (a TEXT) ENGINE=INNODB;
|
||||
|
||||
SELECT COUNT(*) FROM information_schema.innodb_buffer_page
|
||||
WHERE table_name = '`test`.`t`';
|
||||
|
||||
# evict table 't' by inserting as much data as the BP size itself
|
||||
INSERT INTO big SELECT REPEAT('a', 1024) FROM seq_1_to_10240;
|
||||
|
||||
# confirm that all pages for table 't' have been evicted
|
||||
SELECT COUNT(*) FROM information_schema.innodb_buffer_page
|
||||
WHERE table_name = '`test`.`t`';
|
||||
|
||||
# The result from this query will change once update_time becomes persistent
|
||||
# (WL#6917).
|
||||
SELECT COUNT(*) FROM information_schema.tables WHERE table_name = 't'
|
||||
AND update_time IS NOT NULL;
|
||||
|
||||
DROP TEMPORARY TABLE big;
|
||||
|
||||
-- echo # Test the behavior after restart with a prepared XA transaction
|
||||
|
||||
XA START 'xatrx';
|
||||
INSERT INTO t VALUES (5);
|
||||
DELETE FROM t;
|
||||
XA END 'xatrx';
|
||||
XA PREPARE 'xatrx';
|
||||
|
||||
|
Reference in New Issue
Block a user