summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-05-06 22:46:56 +0200
committerSergei Golubchik <serg@mariadb.org>2018-05-08 10:48:13 +0200
commit34045af03f25fc2edd7c0c8db054e505f271513c (patch)
tree25f14d17460cf65238657b1e87afe4fec5fd4d90 /mysql-test/r
parent087ea8f820f46e200a2f8f84328c078555dda45f (diff)
downloadmariadb-git-34045af03f25fc2edd7c0c8db054e505f271513c.tar.gz
MDEV-15216 Assertion `! is_set() || m_can_overwrite_status' failed in Diagnostics_area::set_error_status upon operation inside XA
don't implicitly commit or rollback in mysql_admin_table() unless the statement has CF_IMPLICIT_COMMIT_END flag.
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/assign_key_cache.result13
-rw-r--r--mysql-test/r/implicit_commit.result4
2 files changed, 15 insertions, 2 deletions
diff --git a/mysql-test/r/assign_key_cache.result b/mysql-test/r/assign_key_cache.result
new file mode 100644
index 00000000000..4ed6170136b
--- /dev/null
+++ b/mysql-test/r/assign_key_cache.result
@@ -0,0 +1,13 @@
+set global my_cache.key_buffer_size = 1024*1024;
+create table t1 (i int) engine=myisam partition by hash (i) partitions 2;
+xa start 'xid';
+cache index t1 partition (non_existing_partition) in my_cache;
+Table Op Msg_type Msg_text
+test.t1 assign_to_keycache error Error in list of partitions to test.t1
+cache index t1 partition (p1) in my_cache;
+Table Op Msg_type Msg_text
+test.t1 assign_to_keycache status OK
+xa end 'xid';
+xa rollback 'xid';
+drop table t1;
+set global my_cache.key_buffer_size = 0;
diff --git a/mysql-test/r/implicit_commit.result b/mysql-test/r/implicit_commit.result
index d568d05e7b7..0dcee1b8f06 100644
--- a/mysql-test/r/implicit_commit.result
+++ b/mysql-test/r/implicit_commit.result
@@ -561,7 +561,7 @@ INSERT INTO db1.trans (a) VALUES (1);
cache index t3 in keycache;
CALL db1.test_if_commit();
IMPLICIT COMMIT
-YES
+NO
set global keycache.key_buffer_size=0;
#
# SQLCOM_PRELOAD_KEYS
@@ -570,7 +570,7 @@ INSERT INTO db1.trans (a) VALUES (1);
load index into cache t3;
CALL db1.test_if_commit();
IMPLICIT COMMIT
-YES
+NO
#
# SQLCOM_FLUSH
#