Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e1facda4
Commit
e1facda4
authored
Aug 11, 2014
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for some failing tests.
parent
f64a0c3f
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
314 additions
and
2 deletions
+314
-2
mysql-test/include/have_innodb_disallow_writes.inc
mysql-test/include/have_innodb_disallow_writes.inc
+6
-0
mysql-test/include/have_wsrep.inc
mysql-test/include/have_wsrep.inc
+1
-1
mysql-test/r/innodb_load_xa_with_wsrep.result
mysql-test/r/innodb_load_xa_with_wsrep.result
+18
-0
mysql-test/r/mysqld--help.result
mysql-test/r/mysqld--help.result
+7
-0
mysql-test/suite/sys_vars/r/all_vars.result
mysql-test/suite/sys_vars/r/all_vars.result
+0
-1
mysql-test/suite/sys_vars/r/innodb_disallow_writes_basic.result
...test/suite/sys_vars/r/innodb_disallow_writes_basic.result
+45
-0
mysql-test/suite/sys_vars/r/wsrep_slave_fk_checks_basic.result
...-test/suite/sys_vars/r/wsrep_slave_fk_checks_basic.result
+45
-0
mysql-test/suite/sys_vars/r/wsrep_slave_uk_checks_basic.result
...-test/suite/sys_vars/r/wsrep_slave_uk_checks_basic.result
+45
-0
mysql-test/suite/sys_vars/t/innodb_disallow_writes_basic.test
...l-test/suite/sys_vars/t/innodb_disallow_writes_basic.test
+42
-0
mysql-test/suite/sys_vars/t/wsrep_slave_fk_checks_basic.test
mysql-test/suite/sys_vars/t/wsrep_slave_fk_checks_basic.test
+42
-0
mysql-test/suite/sys_vars/t/wsrep_slave_uk_checks_basic.test
mysql-test/suite/sys_vars/t/wsrep_slave_uk_checks_basic.test
+42
-0
mysql-test/t/innodb_load_xa.test
mysql-test/t/innodb_load_xa.test
+1
-0
mysql-test/t/innodb_load_xa_with_wsrep.opt
mysql-test/t/innodb_load_xa_with_wsrep.opt
+1
-0
mysql-test/t/innodb_load_xa_with_wsrep.test
mysql-test/t/innodb_load_xa_with_wsrep.test
+19
-0
No files found.
mysql-test/include/have_innodb_disallow_writes.inc
0 → 100644
View file @
e1facda4
--
source
include
/
have_innodb
.
inc
if
(
`SELECT COUNT(*) = 0 from INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME = 'INNODB_DISALLOW_WRITES'`
)
{
--
skip
Test
requires
'innodb_disallow_writes'
}
mysql-test/include/have_wsrep.inc
View file @
e1facda4
...
...
@@ -3,6 +3,6 @@
if
(
`SELECT COUNT(*)=0 FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME = 'wsrep' AND PLUGIN_STATUS='ACTIVE'`
)
{
--
skip
Test
require
d
wsrep
plugin
.
--
skip
Test
require
s
wsrep
plugin
.
}
mysql-test/r/innodb_load_xa_with_wsrep.result
0 → 100644
View file @
e1facda4
install plugin innodb soname 'ha_innodb';
select engine,support,transactions,xa from information_schema.engines where engine='innodb';
engine support transactions xa
InnoDB YES YES YES
create table t1 (a int) engine=innodb;
start transaction;
insert t1 values (1);
insert t1 values (2);
commit;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
mysqld-bin.000001 # Query # # use `test`; create table t1 (a int) engine=innodb
mysqld-bin.000001 # Query # # BEGIN
mysqld-bin.000001 # Query # # use `test`; insert t1 values (1)
mysqld-bin.000001 # Query # # use `test`; insert t1 values (2)
mysqld-bin.000001 # Xid # # COMMIT /* XID */
drop table t1;
uninstall plugin innodb;
mysql-test/r/mysqld--help.result
View file @
e1facda4
...
...
@@ -917,6 +917,11 @@ The following options may be given as the first argument:
--wsrep-retry-autocommit=#
Max number of times to retry a failed autocommit
statement
--wsrep-slave-FK-checks
Should slave thread do foreign key constraint checks
(Defaults to on; use --skip-wsrep-slave-FK-checks to disable.)
--wsrep-slave-UK-checks
Should slave thread do secondary index uniqueness chesks
--wsrep-slave-threads=#
Number of slave appliers to launch
--wsrep-sst-auth=name
...
...
@@ -1209,6 +1214,8 @@ wsrep-recover FALSE
wsrep-replicate-myisam FALSE
wsrep-restart-slave FALSE
wsrep-retry-autocommit 1
wsrep-slave-FK-checks TRUE
wsrep-slave-UK-checks FALSE
wsrep-slave-threads 1
wsrep-sst-auth (No default value)
wsrep-sst-donor
...
...
mysql-test/suite/sys_vars/r/all_vars.result
View file @
e1facda4
...
...
@@ -10,6 +10,5 @@ there should be *no* long test name listed below:
select distinct variable_name as `there should be *no* variables listed below:` from t2
left join t1 on variable_name=test_name where test_name is null;
there should be *no* variables listed below:
innodb_disallow_writes
drop table t1;
drop table t2;
mysql-test/suite/sys_vars/r/innodb_disallow_writes_basic.result
0 → 100644
View file @
e1facda4
#
# innodb_disallow_writes
#
# save the initial value
SET @innodb_disallow_writes_global_saved = @@global.innodb_disallow_writes;
# default
SELECT @@global.innodb_disallow_writes;
@@global.innodb_disallow_writes
0
# scope
SELECT @@session.innodb_disallow_writes;
ERROR HY000: Variable 'innodb_disallow_writes' is a GLOBAL variable
SET @@global.innodb_disallow_writes=OFF;
SELECT @@global.innodb_disallow_writes;
@@global.innodb_disallow_writes
0
SET @@global.innodb_disallow_writes=ON;
SELECT @@global.innodb_disallow_writes;
@@global.innodb_disallow_writes
1
# valid values
SET @@global.innodb_disallow_writes='OFF';
SELECT @@global.innodb_disallow_writes;
@@global.innodb_disallow_writes
0
SET @@global.innodb_disallow_writes=ON;
SELECT @@global.innodb_disallow_writes;
@@global.innodb_disallow_writes
1
SET @@global.innodb_disallow_writes=default;
SELECT @@global.innodb_disallow_writes;
@@global.innodb_disallow_writes
0
# invalid values
SET @@global.innodb_disallow_writes=NULL;
ERROR 42000: Variable 'innodb_disallow_writes' can't be set to the value of 'NULL'
SET @@global.innodb_disallow_writes='junk';
ERROR 42000: Variable 'innodb_disallow_writes' can't be set to the value of 'junk'
# restore the initial value
SET @@global.innodb_disallow_writes = @innodb_disallow_writes_global_saved;
# End of test
mysql-test/suite/sys_vars/r/wsrep_slave_fk_checks_basic.result
0 → 100644
View file @
e1facda4
#
# wsrep_slave_fk_checks
#
# save the initial value
SET @wsrep_slave_fk_checks_global_saved = @@global.wsrep_slave_fk_checks;
# default
SELECT @@global.wsrep_slave_fk_checks;
@@global.wsrep_slave_fk_checks
1
# scope
SELECT @@session.wsrep_slave_fk_checks;
ERROR HY000: Variable 'wsrep_slave_FK_checks' is a GLOBAL variable
SET @@global.wsrep_slave_fk_checks=OFF;
SELECT @@global.wsrep_slave_fk_checks;
@@global.wsrep_slave_fk_checks
0
SET @@global.wsrep_slave_fk_checks=ON;
SELECT @@global.wsrep_slave_fk_checks;
@@global.wsrep_slave_fk_checks
1
# valid values
SET @@global.wsrep_slave_fk_checks='OFF';
SELECT @@global.wsrep_slave_fk_checks;
@@global.wsrep_slave_fk_checks
0
SET @@global.wsrep_slave_fk_checks=ON;
SELECT @@global.wsrep_slave_fk_checks;
@@global.wsrep_slave_fk_checks
1
SET @@global.wsrep_slave_fk_checks=default;
SELECT @@global.wsrep_slave_fk_checks;
@@global.wsrep_slave_fk_checks
1
# invalid values
SET @@global.wsrep_slave_fk_checks=NULL;
ERROR 42000: Variable 'wsrep_slave_FK_checks' can't be set to the value of 'NULL'
SET @@global.wsrep_slave_fk_checks='junk';
ERROR 42000: Variable 'wsrep_slave_FK_checks' can't be set to the value of 'junk'
# restore the initial value
SET @@global.wsrep_slave_fk_checks = @wsrep_slave_fk_checks_global_saved;
# End of test
mysql-test/suite/sys_vars/r/wsrep_slave_uk_checks_basic.result
0 → 100644
View file @
e1facda4
#
# wsrep_slave_uk_checks
#
# save the initial value
SET @wsrep_slave_uk_checks_global_saved = @@global.wsrep_slave_uk_checks;
# default
SELECT @@global.wsrep_slave_uk_checks;
@@global.wsrep_slave_uk_checks
0
# scope
SELECT @@session.wsrep_slave_uk_checks;
ERROR HY000: Variable 'wsrep_slave_UK_checks' is a GLOBAL variable
SET @@global.wsrep_slave_uk_checks=OFF;
SELECT @@global.wsrep_slave_uk_checks;
@@global.wsrep_slave_uk_checks
0
SET @@global.wsrep_slave_uk_checks=ON;
SELECT @@global.wsrep_slave_uk_checks;
@@global.wsrep_slave_uk_checks
1
# valid values
SET @@global.wsrep_slave_uk_checks='OFF';
SELECT @@global.wsrep_slave_uk_checks;
@@global.wsrep_slave_uk_checks
0
SET @@global.wsrep_slave_uk_checks=ON;
SELECT @@global.wsrep_slave_uk_checks;
@@global.wsrep_slave_uk_checks
1
SET @@global.wsrep_slave_uk_checks=default;
SELECT @@global.wsrep_slave_uk_checks;
@@global.wsrep_slave_uk_checks
0
# invalid values
SET @@global.wsrep_slave_uk_checks=NULL;
ERROR 42000: Variable 'wsrep_slave_UK_checks' can't be set to the value of 'NULL'
SET @@global.wsrep_slave_uk_checks='junk';
ERROR 42000: Variable 'wsrep_slave_UK_checks' can't be set to the value of 'junk'
# restore the initial value
SET @@global.wsrep_slave_uk_checks = @wsrep_slave_uk_checks_global_saved;
# End of test
mysql-test/suite/sys_vars/t/innodb_disallow_writes_basic.test
0 → 100644
View file @
e1facda4
--
source
include
/
have_innodb_disallow_writes
.
inc
--
echo
#
--
echo
# innodb_disallow_writes
--
echo
#
--
echo
# save the initial value
SET
@
innodb_disallow_writes_global_saved
=
@@
global
.
innodb_disallow_writes
;
--
echo
# default
SELECT
@@
global
.
innodb_disallow_writes
;
--
echo
--
echo
# scope
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT
@@
session
.
innodb_disallow_writes
;
SET
@@
global
.
innodb_disallow_writes
=
OFF
;
SELECT
@@
global
.
innodb_disallow_writes
;
SET
@@
global
.
innodb_disallow_writes
=
ON
;
SELECT
@@
global
.
innodb_disallow_writes
;
--
echo
--
echo
# valid values
SET
@@
global
.
innodb_disallow_writes
=
'OFF'
;
SELECT
@@
global
.
innodb_disallow_writes
;
SET
@@
global
.
innodb_disallow_writes
=
ON
;
SELECT
@@
global
.
innodb_disallow_writes
;
SET
@@
global
.
innodb_disallow_writes
=
default
;
SELECT
@@
global
.
innodb_disallow_writes
;
--
echo
--
echo
# invalid values
--
error
ER_WRONG_VALUE_FOR_VAR
SET
@@
global
.
innodb_disallow_writes
=
NULL
;
--
error
ER_WRONG_VALUE_FOR_VAR
SET
@@
global
.
innodb_disallow_writes
=
'junk'
;
--
echo
--
echo
# restore the initial value
SET
@@
global
.
innodb_disallow_writes
=
@
innodb_disallow_writes_global_saved
;
--
echo
# End of test
mysql-test/suite/sys_vars/t/wsrep_slave_fk_checks_basic.test
0 → 100644
View file @
e1facda4
--
source
include
/
have_wsrep
.
inc
--
echo
#
--
echo
# wsrep_slave_fk_checks
--
echo
#
--
echo
# save the initial value
SET
@
wsrep_slave_fk_checks_global_saved
=
@@
global
.
wsrep_slave_fk_checks
;
--
echo
# default
SELECT
@@
global
.
wsrep_slave_fk_checks
;
--
echo
--
echo
# scope
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT
@@
session
.
wsrep_slave_fk_checks
;
SET
@@
global
.
wsrep_slave_fk_checks
=
OFF
;
SELECT
@@
global
.
wsrep_slave_fk_checks
;
SET
@@
global
.
wsrep_slave_fk_checks
=
ON
;
SELECT
@@
global
.
wsrep_slave_fk_checks
;
--
echo
--
echo
# valid values
SET
@@
global
.
wsrep_slave_fk_checks
=
'OFF'
;
SELECT
@@
global
.
wsrep_slave_fk_checks
;
SET
@@
global
.
wsrep_slave_fk_checks
=
ON
;
SELECT
@@
global
.
wsrep_slave_fk_checks
;
SET
@@
global
.
wsrep_slave_fk_checks
=
default
;
SELECT
@@
global
.
wsrep_slave_fk_checks
;
--
echo
--
echo
# invalid values
--
error
ER_WRONG_VALUE_FOR_VAR
SET
@@
global
.
wsrep_slave_fk_checks
=
NULL
;
--
error
ER_WRONG_VALUE_FOR_VAR
SET
@@
global
.
wsrep_slave_fk_checks
=
'junk'
;
--
echo
--
echo
# restore the initial value
SET
@@
global
.
wsrep_slave_fk_checks
=
@
wsrep_slave_fk_checks_global_saved
;
--
echo
# End of test
mysql-test/suite/sys_vars/t/wsrep_slave_uk_checks_basic.test
0 → 100644
View file @
e1facda4
--
source
include
/
have_wsrep
.
inc
--
echo
#
--
echo
# wsrep_slave_uk_checks
--
echo
#
--
echo
# save the initial value
SET
@
wsrep_slave_uk_checks_global_saved
=
@@
global
.
wsrep_slave_uk_checks
;
--
echo
# default
SELECT
@@
global
.
wsrep_slave_uk_checks
;
--
echo
--
echo
# scope
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT
@@
session
.
wsrep_slave_uk_checks
;
SET
@@
global
.
wsrep_slave_uk_checks
=
OFF
;
SELECT
@@
global
.
wsrep_slave_uk_checks
;
SET
@@
global
.
wsrep_slave_uk_checks
=
ON
;
SELECT
@@
global
.
wsrep_slave_uk_checks
;
--
echo
--
echo
# valid values
SET
@@
global
.
wsrep_slave_uk_checks
=
'OFF'
;
SELECT
@@
global
.
wsrep_slave_uk_checks
;
SET
@@
global
.
wsrep_slave_uk_checks
=
ON
;
SELECT
@@
global
.
wsrep_slave_uk_checks
;
SET
@@
global
.
wsrep_slave_uk_checks
=
default
;
SELECT
@@
global
.
wsrep_slave_uk_checks
;
--
echo
--
echo
# invalid values
--
error
ER_WRONG_VALUE_FOR_VAR
SET
@@
global
.
wsrep_slave_uk_checks
=
NULL
;
--
error
ER_WRONG_VALUE_FOR_VAR
SET
@@
global
.
wsrep_slave_uk_checks
=
'junk'
;
--
echo
--
echo
# restore the initial value
SET
@@
global
.
wsrep_slave_uk_checks
=
@
wsrep_slave_uk_checks_global_saved
;
--
echo
# End of test
mysql-test/t/innodb_load_xa.test
View file @
e1facda4
...
...
@@ -2,6 +2,7 @@
# MDEV-6082 Assertion `0' fails in TC_LOG_DUMMY::log_and_order on DML after installing TokuDB at runtime on server with disabled InnoDB
#
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_wsrep
.
inc
if
(
!
$HA_INNODB_SO
)
{
--
skip
Need
InnoDB
plugin
...
...
mysql-test/t/innodb_load_xa_with_wsrep.opt
0 → 100644
View file @
e1facda4
--ignore-builtin-innodb --loose-innodb --log-bin
mysql-test/t/innodb_load_xa_with_wsrep.test
0 → 100644
View file @
e1facda4
#
# MDEV-6082 Assertion `0' fails in TC_LOG_DUMMY::log_and_order on DML after installing TokuDB at runtime on server with disabled InnoDB
#
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_wsrep
.
inc
if
(
!
$HA_INNODB_SO
)
{
--
skip
Need
InnoDB
plugin
}
install
plugin
innodb
soname
'ha_innodb'
;
select
engine
,
support
,
transactions
,
xa
from
information_schema
.
engines
where
engine
=
'innodb'
;
create
table
t1
(
a
int
)
engine
=
innodb
;
start
transaction
;
insert
t1
values
(
1
);
insert
t1
values
(
2
);
commit
;
--
source
include
/
show_binlog_events
.
inc
drop
table
t1
;
uninstall
plugin
innodb
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment