mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 00:34:18 +01:00
2e814d4702
Contains also MDEV-10547: Test multi_update_innodb fails with InnoDB 5.7 The failure happened because 5.7 has changed the signature of the bool handler::primary_key_is_clustered() const virtual function ("const" was added). InnoDB was using the old signature which caused the function not to be used. MDEV-10550: Parallel replication lock waits/deadlock handling does not work with InnoDB 5.7 Fixed mutexing problem on lock_trx_handle_wait. Note that rpl_parallel and rpl_optimistic_parallel tests still fail. MDEV-10156 : Group commit tests fail on 10.2 InnoDB (branch bb-10.2-jan) Reason: incorrect merge MDEV-10550: Parallel replication can't sync with master in InnoDB 5.7 (branch bb-10.2-jan) Reason: incorrect merge
95 lines
3 KiB
Text
95 lines
3 KiB
Text
set global innodb_stats_method = default;
|
|
select @@innodb_stats_method;
|
|
@@innodb_stats_method
|
|
nulls_equal
|
|
select count(*) from bug30243_3 where org_id is not NULL;
|
|
count(*)
|
|
20
|
|
select count(*) from bug30243_3 where org_id is NULL;
|
|
count(*)
|
|
16384
|
|
select count(*) from bug30243_2 where org_id is not NULL;
|
|
count(*)
|
|
224
|
|
select count(*) from bug30243_2 where org_id is NULL;
|
|
count(*)
|
|
65536
|
|
select @@innodb_stats_method;
|
|
@@innodb_stats_method
|
|
nulls_equal
|
|
analyze table bug30243_1;
|
|
Table Op Msg_type Msg_text
|
|
test.bug30243_1 analyze status OK
|
|
analyze table bug30243_2;
|
|
Table Op Msg_type Msg_text
|
|
test.bug30243_2 analyze status OK
|
|
analyze table bug30243_3;
|
|
Table Op Msg_type Msg_text
|
|
test.bug30243_3 analyze status OK
|
|
set global innodb_stats_method = "NULL";
|
|
ERROR 42000: Variable 'innodb_stats_method' can't be set to the value of 'NULL'
|
|
set global innodb_stats_method = "nulls_ignored";
|
|
select @@innodb_stats_method;
|
|
@@innodb_stats_method
|
|
nulls_ignored
|
|
analyze table bug30243_1;
|
|
Table Op Msg_type Msg_text
|
|
test.bug30243_1 analyze status OK
|
|
analyze table bug30243_2;
|
|
Table Op Msg_type Msg_text
|
|
test.bug30243_2 analyze status OK
|
|
analyze table bug30243_3;
|
|
Table Op Msg_type Msg_text
|
|
test.bug30243_3 analyze status OK
|
|
explain SELECT COUNT(*), 0
|
|
FROM bug30243_1 orgs
|
|
LEFT JOIN bug30243_3 sa_opportunities
|
|
ON orgs.org_id=sa_opportunities.org_id
|
|
LEFT JOIN bug30243_2 contacts
|
|
ON orgs.org_id=contacts.org_id ;
|
|
id select_type table type possible_keys key key_len ref rows Extra
|
|
1 SIMPLE orgs index NULL org_id 4 NULL ROWS Using index
|
|
1 SIMPLE sa_opportunities ref org_id org_id 5 test.orgs.org_id ROWS Using index
|
|
1 SIMPLE contacts ref contacts$org_id contacts$org_id 5 test.orgs.org_id ROWS Using index
|
|
select @@innodb_stats_method;
|
|
@@innodb_stats_method
|
|
nulls_ignored
|
|
set global innodb_stats_method = "nulls_unequal";
|
|
select @@innodb_stats_method;
|
|
@@innodb_stats_method
|
|
nulls_unequal
|
|
analyze table bug30243_1;
|
|
Table Op Msg_type Msg_text
|
|
test.bug30243_1 analyze status OK
|
|
analyze table bug30243_2;
|
|
Table Op Msg_type Msg_text
|
|
test.bug30243_2 analyze status OK
|
|
analyze table bug30243_3;
|
|
Table Op Msg_type Msg_text
|
|
test.bug30243_3 analyze status OK
|
|
explain SELECT COUNT(*), 0
|
|
FROM bug30243_1 orgs
|
|
LEFT JOIN bug30243_3 sa_opportunities
|
|
ON orgs.org_id=sa_opportunities.org_id
|
|
LEFT JOIN bug30243_2 contacts
|
|
ON orgs.org_id=contacts.org_id;
|
|
id select_type table type possible_keys key key_len ref rows Extra
|
|
1 SIMPLE orgs index NULL org_id 4 NULL ROWS Using index
|
|
1 SIMPLE sa_opportunities ref org_id org_id 5 test.orgs.org_id ROWS Using index
|
|
1 SIMPLE contacts ref contacts$org_id contacts$org_id 5 test.orgs.org_id ROWS Using index
|
|
SELECT COUNT(*) FROM table_bug30423 WHERE org_id IS NULL;
|
|
COUNT(*)
|
|
1024
|
|
set global innodb_stats_method = "nulls_unequal";
|
|
analyze table table_bug30423;
|
|
Table Op Msg_type Msg_text
|
|
test.table_bug30423 analyze status OK
|
|
set global innodb_stats_method = "nulls_ignored";
|
|
analyze table table_bug30423;
|
|
Table Op Msg_type Msg_text
|
|
test.table_bug30423 analyze status OK
|
|
set global innodb_stats_method = nulls_equal;
|
|
drop table bug30243_2;
|
|
drop table bug30243_1;
|
|
drop table bug30243_3;
|
|
drop table table_bug30423;
|