Skip to content

Commit b2e0a45

Browse files
committed
Merge 10.5 into 10.6
2 parents 0238e68 + d44a10f commit b2e0a45

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

mysql-test/suite/innodb/r/doublewrite.result

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ innodb_fil_make_page_dirty_debug 0
1414
show variables like 'innodb_saved_page_number_debug';
1515
Variable_name Value
1616
innodb_saved_page_number_debug 0
17+
connect stop_purge,localhost,root,,;
18+
START TRANSACTION WITH CONSISTENT SNAPSHOT;
19+
connection default;
1720
create table t1 (f1 int primary key, f2 blob) engine=innodb;
1821
start transaction;
1922
insert into t1 values(1, repeat('#',12));
@@ -29,17 +32,17 @@ select space from information_schema.innodb_sys_tables
2932
where name = 'test/t1' into @space_id;
3033
Warnings:
3134
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
32-
# Ensure that dirty pages of table t1 is flushed.
33-
flush tables t1 for export;
34-
unlock tables;
3535
begin;
3636
insert into t1 values (6, repeat('%', 12));
37+
# Ensure that dirty pages of table t1 are flushed.
38+
set global innodb_buf_flush_list_now = 1;
3739
# Make the first page dirty for table t1
3840
set global innodb_saved_page_number_debug = 0;
3941
set global innodb_fil_make_page_dirty_debug = @space_id;
4042
# Ensure that dirty pages of table t1 are flushed.
4143
set global innodb_buf_flush_list_now = 1;
4244
# Kill the server
45+
disconnect stop_purge;
4346
# Make the first page (page_no=0) of the user tablespace
4447
# full of zeroes.
4548
#

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ show variables like 'innodb_doublewrite';
3434
show variables like 'innodb_fil_make_page_dirty_debug';
3535
show variables like 'innodb_saved_page_number_debug';
3636

37+
connect (stop_purge,localhost,root,,);
38+
START TRANSACTION WITH CONSISTENT SNAPSHOT;
39+
connection default;
40+
3741
create table t1 (f1 int primary key, f2 blob) engine=innodb;
3842

3943
start transaction;
@@ -51,12 +55,10 @@ commit work;
5155
select space from information_schema.innodb_sys_tables
5256
where name = 'test/t1' into @space_id;
5357

54-
--echo # Ensure that dirty pages of table t1 is flushed.
55-
flush tables t1 for export;
56-
unlock tables;
57-
5858
begin;
5959
insert into t1 values (6, repeat('%', 12));
60+
--echo # Ensure that dirty pages of table t1 are flushed.
61+
set global innodb_buf_flush_list_now = 1;
6062

6163
--source ../include/no_checkpoint_start.inc
6264

@@ -69,6 +71,7 @@ set global innodb_buf_flush_list_now = 1;
6971

7072
--let CLEANUP_IF_CHECKPOINT=drop table t1;
7173
--source ../include/no_checkpoint_end.inc
74+
disconnect stop_purge;
7275

7376
--echo # Make the first page (page_no=0) of the user tablespace
7477
--echo # full of zeroes.

sql/table.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ TABLE_CATEGORY get_table_category(const LEX_CSTRING *db,
280280
DBUG_ASSERT(name != NULL);
281281

282282
#ifdef WITH_WSREP
283-
if (my_strcasecmp(system_charset_info, db->str, "mysql") == 0 &&
283+
if (db->str &&
284+
my_strcasecmp(system_charset_info, db->str, "mysql") == 0 &&
284285
my_strcasecmp(system_charset_info, name->str, "wsrep_streaming_log") == 0)
285286
{
286287
return TABLE_CATEGORY_INFORMATION;

0 commit comments

Comments
 (0)