summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2018-04-07 15:03:15 +0300
committerSergei Petrunia <psergey@askmonty.org>2018-04-07 15:03:15 +0300
commitb4c2ceb214c262c09094fd3d318c786368259760 (patch)
tree8cddb884e833cbdd17c2e0dece62beb08982e72b /mysql-test/r
parent1cb2e0333d3006f83370168c75d602edf2c3bfd1 (diff)
downloadmariadb-git-b4c2ceb214c262c09094fd3d318c786368259760.tar.gz
MDEV-15769: Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed
Adjust the fix for MDEV-15472: In close_cached_tables(), locked_tables_list.reopen_tables(...) call might be made when a previous call to some function has already returned error. In this scenario, the function should return 0, even if reopen_tables(...) call has succeeded.
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/lock.result16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/lock.result b/mysql-test/r/lock.result
index 00dbb166ffb..e3fd16ee59a 100644
--- a/mysql-test/r/lock.result
+++ b/mysql-test/r/lock.result
@@ -489,3 +489,19 @@ unlock tables;
disconnect con1;
connection default;
drop table t1;
+#
+# MDEV-15769: Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed in Diagnostics_area::set_ok_status
+#
+CREATE TABLE t1 (a INT);
+CREATE TABLE t2 (b INT);
+LOCK TABLE t1 READ;
+connect con1,localhost,root,,test;
+LOCK TABLE t2 WRITE;
+SET lock_wait_timeout= 1;
+FLUSH TABLES;
+ERROR HY000: Lock wait timeout exceeded; try restarting transaction
+UNLOCK TABLES;
+disconnect con1;
+connection default;
+UNLOCK TABLES;
+DROP TABLE t1, t2;