Skip to content

Commit 7c81f15

Browse files
committed
Merge 10.1 into bb-10.2-mdev-11782
2 parents fd0479c + 2dc5d8b commit 7c81f15

File tree

4 files changed

+18
-40
lines changed

4 files changed

+18
-40
lines changed

mysql-test/include/start_mysqld.inc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# Include this script only after using shutdown_mysqld.inc
22
# where $_expect_file_name was initialized.
33
# Write file to make mysql-test-run.pl start up the server again
4-
--exec echo "restart" > $_expect_file_name
4+
if ($restart_parameters)
5+
{
6+
--exec echo "restart: $restart_parameters" > $_expect_file_name
7+
}
8+
if (!$restart_parameters)
9+
{
10+
--exec echo "restart" > $_expect_file_name
11+
}
512

613
# Turn on reconnect
714
--enable_reconnect

mysql-test/suite/encryption/r/innodb-log-encrypt.result

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
SET GLOBAL innodb_file_format = `Barracuda`;
2-
Warnings:
3-
Warning 131 Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
4-
SET GLOBAL innodb_file_per_table = ON;
51
create table t1(c1 bigint not null, b char(200), c varchar(200)) engine=innodb encrypted=yes encryption_key_id=1;
62
show warnings;
73
Level Code Message
@@ -15,14 +11,14 @@ set current_num = current_num + 1;
1511
end while;
1612
end//
1713
commit;
18-
set autocommit=0;
14+
begin;
1915
call innodb_insert_proc(2000);
2016
commit;
21-
set autocommit=1;
2217
update t1 set c1 = c1 +1;
2318
select count(*) from t1;
2419
count(*)
2520
2000
21+
# Kill the server
2622
# ibdata1 yes on expecting NOT FOUND
2723
NOT FOUND /privatejanprivate/ in ibdata1
2824
# t1 yes on expecting NOT FOUND
@@ -55,5 +51,3 @@ FOUND /publicmessage/ in ib_logfile0
5551
NOT FOUND /publicmessage/ in ib_logfile1
5652
drop procedure innodb_insert_proc;
5753
drop table t1;
58-
Warnings:
59-
Warning 131 Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html

mysql-test/suite/encryption/t/innodb-log-encrypt.test

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
# MDEV-9011: Redo log encryption does not work
77
#
88

9-
--disable_query_log
10-
let $innodb_file_format_orig = `SELECT @@innodb_file_format`;
11-
let $innodb_file_per_table_orig = `SELECT @@innodb_file_per_table`;
12-
--enable_query_log
13-
14-
--disable_query_log
15-
let $innodb_file_format_orig = `SELECT @@innodb_file_format`;
16-
let $innodb_file_per_table_orig = `SELECT @@innodb_file_per_table`;
17-
--enable_query_log
18-
19-
SET GLOBAL innodb_file_format = `Barracuda`;
20-
SET GLOBAL innodb_file_per_table = ON;
21-
229
create table t1(c1 bigint not null, b char(200), c varchar(200)) engine=innodb encrypted=yes encryption_key_id=1;
2310
show warnings;
2411

@@ -35,16 +22,13 @@ end//
3522
delimiter ;//
3623
commit;
3724

38-
set autocommit=0;
25+
begin;
3926
call innodb_insert_proc(2000);
4027
commit;
41-
set autocommit=1;
4228

4329
update t1 set c1 = c1 +1;
4430
select count(*) from t1;
4531

46-
-- source include/restart_mysqld.inc
47-
4832
--let $MYSQLD_DATADIR=`select @@datadir`
4933
--let ib1_IBD = $MYSQLD_DATADIR/ibdata1
5034
--let t1_IBD = $MYSQLD_DATADIR/test/t1.ibd
@@ -53,6 +37,8 @@ select count(*) from t1;
5337
--let SEARCH_RANGE = 10000000
5438
--let SEARCH_PATTERN=privatejanprivate
5539

40+
-- source include/kill_mysqld.inc
41+
5642
--echo # ibdata1 yes on expecting NOT FOUND
5743
-- let SEARCH_FILE=$ib1_IBD
5844
-- source include/search_pattern_in_file.inc
@@ -68,7 +54,7 @@ select count(*) from t1;
6854

6955
--echo # Restart mysqld --innodb_encrypt_log=0
7056
-- let $restart_parameters=--innodb_encrypt_log=0
71-
-- source include/restart_mysqld.inc
57+
-- source include/start_mysqld.inc
7258

7359
insert into t1 values(5000, substring(MD5(RAND()), -64), REPEAT('publicmessage',10));
7460
insert into t1 values(5001, substring(MD5(RAND()), -64), REPEAT('publicmessage',10));
@@ -106,9 +92,3 @@ insert into t1 values(5004, substring(MD5(RAND()), -64), REPEAT('publicmessage',
10692

10793
drop procedure innodb_insert_proc;
10894
drop table t1;
109-
110-
# reset system
111-
--disable_query_log
112-
EVAL SET GLOBAL innodb_file_per_table = $innodb_file_per_table_orig;
113-
EVAL SET GLOBAL innodb_file_format = $innodb_file_format_orig;
114-
--enable_query_log

mysql-test/suite/innodb/t/log_data_file_size.test

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ perl;
2222
use Fcntl 'SEEK_CUR', 'SEEK_END';
2323

2424
my $page_size = $ENV{'INNODB_PAGE_SIZE'};
25-
my $restart = 'restart';
25+
my $restart;
2626
if ($ENV{'MYSQLD_IS_DEBUG'})
2727
{
2828
# It is impractical to ensure that CREATE TABLE t will extend ibdata1.
@@ -36,17 +36,14 @@ if ($ENV{'MYSQLD_IS_DEBUG'})
3636
while(<FILE>) { unless (/\0*/gso) { $empty_tail= 0; last } }
3737
if ($empty_tail)
3838
{
39-
$restart = 'restart: --innodb-data-file-size-debug=' . $size;
39+
$restart = "--innodb-data-file-size-debug=$size";
4040
truncate(FILE, $page_size * $root);
4141
}
4242
close FILE;
4343
}
4444
open(FILE, ">$ENV{MYSQLTEST_VARDIR}/log/start_mysqld.txt") || die;
45-
print FILE '--exec echo "', $restart, '" > $_expect_file_name
46-
--enable_reconnect
47-
--source include/wait_until_connected_again.inc
48-
--disable_reconnect
49-
';
45+
print FILE "--let \$restart_parameters=$restart\n" if $restart;
46+
print FILE "--source include/start_mysqld.inc\n";
5047
close FILE;
5148
open(FILE, "+<", "$ENV{'MYSQLD_DATADIR'}test/ibd4.ibd") or die;
5249
truncate(FILE, $page_size * 4);

0 commit comments

Comments
 (0)