Skip to content

Commit 06dd151

Browse files
committed
Merge 10.5 into 10.6
2 parents 3dd9124 + 8426c74 commit 06dd151

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

mysql-test/main/trigger-trans.result

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,12 @@ DROP TABLE t3, t2, t1;
234234
# void MDL_context::release_lock(MDL_ticket*)
235235
#
236236
CREATE TABLE t1 (id int(11)) ENGINE=InnoDB;
237-
SET max_statement_time= 0.001;
238237
LOCK TABLES t1 WRITE;
238+
SET max_statement_time= 0.001;
239239
CREATE TRIGGER tr16 AFTER UPDATE ON t1 FOR EACH ROW INSERT INTO t1 VALUES (1);
240-
DROP TABLE t1;
241240
SET max_statement_time= default;
241+
DROP TRIGGER IF EXISTS trg16;
242+
DROP TABLE t1;
242243
#
243244
# End of 10.5 tests
244245
#

mysql-test/main/trigger-trans.test

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,17 @@ DROP TABLE t3, t2, t1;
240240
--echo #
241241

242242
CREATE TABLE t1 (id int(11)) ENGINE=InnoDB;
243-
SET max_statement_time= 0.001;
244243
LOCK TABLES t1 WRITE;
244+
SET max_statement_time= 0.001;
245+
--error 0,1969,2013
246+
--disable_warnings
245247
CREATE TRIGGER tr16 AFTER UPDATE ON t1 FOR EACH ROW INSERT INTO t1 VALUES (1);
246-
DROP TABLE t1;
248+
--enable_warnings
247249
SET max_statement_time= default;
250+
--disable_warnings
251+
DROP TRIGGER IF EXISTS trg16;
252+
--enable_warnings
253+
DROP TABLE t1;
248254

249255
--echo #
250256
--echo # End of 10.5 tests

sql/sql_admin.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
605605

606606
if (thd->check_killed())
607607
{
608+
open_error= false;
608609
fatal_error= true;
609610
result_code= HA_ADMIN_FAILED;
610611
goto send_result;

storage/innobase/buf/buf0buf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ buf_madvise_do_dump()
824824
ret+= madvise(chunk->mem, chunk->mem_size(), MADV_DODUMP);
825825
}
826826

827-
mysql_mutex_lock(&buf_pool.mutex);
827+
mysql_mutex_unlock(&buf_pool.mutex);
828828
return ret;
829829
}
830830
#endif

0 commit comments

Comments
 (0)