mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
Merge 10.5 into 10.6
This commit is contained in:
commit
07f4a4a6d1
5 changed files with 17 additions and 12 deletions
|
@ -1,3 +1,5 @@
|
|||
# MDEV-27964 The function ENCRYPT() causes SIGSEGV in WITH_MSAN builds
|
||||
-- source include/not_msan.inc
|
||||
# encrypt('a') is NULL if crypt(3) is not available
|
||||
# encrypt('a') is "*0" in fips mode
|
||||
if (`select length(encrypt('a')) > 3 IS NOT TRUE`) {
|
||||
|
|
|
@ -2,19 +2,19 @@
|
|||
# Test lock taken
|
||||
#
|
||||
BACKUP LOCK test.t1;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info where table_name not like "innodb_%";
|
||||
LOCK_MODE LOCK_TYPE TABLE_SCHEMA TABLE_NAME
|
||||
MDL_SHARED_HIGH_PRIO Table metadata lock test t1
|
||||
BACKUP UNLOCK;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info where table_name not like "innodb_%";
|
||||
LOCK_MODE LOCK_TYPE TABLE_SCHEMA TABLE_NAME
|
||||
BACKUP LOCK t1;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info where table_name not like "innodb_%";
|
||||
LOCK_MODE LOCK_TYPE TABLE_SCHEMA TABLE_NAME
|
||||
MDL_SHARED_HIGH_PRIO Table metadata lock test t1
|
||||
BACKUP UNLOCK;
|
||||
BACKUP LOCK non_existing.t1;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info where table_name not like "innodb_%";
|
||||
LOCK_MODE LOCK_TYPE TABLE_SCHEMA TABLE_NAME
|
||||
MDL_SHARED_HIGH_PRIO Table metadata lock non_existing t1
|
||||
BACKUP UNLOCK;
|
||||
|
|
|
@ -11,14 +11,14 @@
|
|||
--echo #
|
||||
|
||||
BACKUP LOCK test.t1;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info where table_name not like "innodb_%";
|
||||
BACKUP UNLOCK;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info where table_name not like "innodb_%";
|
||||
BACKUP LOCK t1;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info where table_name not like "innodb_%";
|
||||
BACKUP UNLOCK;
|
||||
BACKUP LOCK non_existing.t1;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info where table_name not like "innodb_%";
|
||||
BACKUP UNLOCK;
|
||||
|
||||
--echo #
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
-- source include/have_crypt.inc
|
||||
# MDEV-27964 The function ENCRYPT() causes SIGSEGV in WITH_MSAN builds
|
||||
-- source include/not_msan.inc
|
||||
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
|
|
|
@ -1882,9 +1882,14 @@ public:
|
|||
buf_tmp_buffer_t *io_buf_reserve() { return io_buf.reserve(); }
|
||||
|
||||
/** @return whether any I/O is pending */
|
||||
bool any_io_pending() const
|
||||
bool any_io_pending()
|
||||
{
|
||||
return n_pend_reads || n_flush_LRU() || n_flush_list();
|
||||
if (n_pend_reads)
|
||||
return true;
|
||||
mysql_mutex_lock(&mutex);
|
||||
const bool any_pending{n_flush_LRU_ || n_flush_list_};
|
||||
mysql_mutex_unlock(&mutex);
|
||||
return any_pending;
|
||||
}
|
||||
/** @return total amount of pending I/O */
|
||||
ulint io_pending() const
|
||||
|
|
Loading…
Add table
Reference in a new issue