mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
Merge branch '10.1' into 10.2
This commit is contained in:
commit
594282a534
7 changed files with 53 additions and 7 deletions
6
mysql-test/suite/innodb_fts/r/misc_debug2.result
Normal file
6
mysql-test/suite/innodb_fts/r/misc_debug2.result
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
call mtr.add_suppression("InnoDB: Table '.*' tablespace is set as discarded.");
|
||||
CREATE TABLE mdev21563(f1 VARCHAR(100), FULLTEXT idx(f1))ENGINE=InnoDB;
|
||||
set debug_dbug="+d,fts_instrument_sync_request";
|
||||
INSERT INTO mdev21563 VALUES('This is a test');
|
||||
ALTER TABLE mdev21563 DISCARD TABLESPACE;
|
||||
DROP TABLE mdev21563;
|
||||
11
mysql-test/suite/innodb_fts/t/misc_debug2.test
Normal file
11
mysql-test/suite/innodb_fts/t/misc_debug2.test
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--source include/have_innodb.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/not_embedded.inc
|
||||
call mtr.add_suppression("InnoDB: Table '.*' tablespace is set as discarded.");
|
||||
|
||||
CREATE TABLE mdev21563(f1 VARCHAR(100), FULLTEXT idx(f1))ENGINE=InnoDB;
|
||||
set debug_dbug="+d,fts_instrument_sync_request";
|
||||
INSERT INTO mdev21563 VALUES('This is a test');
|
||||
ALTER TABLE mdev21563 DISCARD TABLESPACE;
|
||||
--source include/restart_mysqld.inc
|
||||
DROP TABLE mdev21563;
|
||||
|
|
@ -4136,7 +4136,6 @@ bool check_column_name(const char *name)
|
|||
been opened.
|
||||
|
||||
@param[in] table The table to check
|
||||
@param[in] table_f_count Expected number of columns in the table
|
||||
@param[in] table_def Expected structure of the table (column name
|
||||
and type)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/*****************************************************************************
|
||||
|
||||
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All Rights Reserved.
|
||||
Copyright (c) 2015, 2019, MariaDB Corporation.
|
||||
Copyright (c) 2015, 2020, MariaDB Corporation.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
|
|
@ -3056,6 +3056,16 @@ row_discard_tablespace_for_mysql(
|
|||
err = DB_ERROR;
|
||||
|
||||
} else {
|
||||
bool fts_exist = (dict_table_has_fts_index(table)
|
||||
|| DICT_TF2_FLAG_IS_SET(
|
||||
table, DICT_TF2_FTS_HAS_DOC_ID));
|
||||
|
||||
if (fts_exist) {
|
||||
row_mysql_unlock_data_dictionary(trx);
|
||||
fts_optimize_remove_table(table);
|
||||
row_mysql_lock_data_dictionary(trx);
|
||||
}
|
||||
|
||||
/* Do foreign key constraint checks. */
|
||||
|
||||
err = row_discard_tablespace_foreign_key_checks(trx, table);
|
||||
|
|
@ -3063,6 +3073,10 @@ row_discard_tablespace_for_mysql(
|
|||
if (err == DB_SUCCESS) {
|
||||
err = row_discard_tablespace(trx, table);
|
||||
}
|
||||
|
||||
if (fts_exist && err != DB_SUCCESS) {
|
||||
fts_optimize_add_table(table);
|
||||
}
|
||||
}
|
||||
|
||||
return(row_discard_tablespace_end(trx, table, err));
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
|
||||
Copyright (c) 2008, 2009 Google Inc.
|
||||
Copyright (c) 2009, Percona Inc.
|
||||
Copyright (c) 2013, 2019, MariaDB Corporation.
|
||||
Copyright (c) 2013, 2020, MariaDB Corporation.
|
||||
|
||||
Portions of this file contain modifications contributed and copyrighted by
|
||||
Google, Inc. Those modifications are gratefully acknowledged and are described
|
||||
|
|
@ -507,7 +507,9 @@ current_time % 60 == 0 and no tasks will be performed when
|
|||
current_time % 5 != 0. */
|
||||
|
||||
# define SRV_MASTER_CHECKPOINT_INTERVAL (7)
|
||||
# define SRV_MASTER_PURGE_INTERVAL (10)
|
||||
#ifdef MEM_PERIODIC_CHECK
|
||||
# define SRV_MASTER_MEM_VALIDATE_INTERVAL (13)
|
||||
#endif /* MEM_PERIODIC_CHECK */
|
||||
# define SRV_MASTER_DICT_LRU_INTERVAL (47)
|
||||
|
||||
/** Simulate compression failures. */
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/*****************************************************************************
|
||||
|
||||
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All Rights Reserved.
|
||||
Copyright (c) 2015, 2019, MariaDB Corporation.
|
||||
Copyright (c) 2015, 2020, MariaDB Corporation.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
|
|
@ -3209,6 +3209,16 @@ row_discard_tablespace_for_mysql(
|
|||
err = DB_ERROR;
|
||||
|
||||
} else {
|
||||
bool fts_exist = (dict_table_has_fts_index(table)
|
||||
|| DICT_TF2_FLAG_IS_SET(
|
||||
table, DICT_TF2_FTS_HAS_DOC_ID));
|
||||
|
||||
if (fts_exist) {
|
||||
row_mysql_unlock_data_dictionary(trx);
|
||||
fts_optimize_remove_table(table);
|
||||
row_mysql_lock_data_dictionary(trx);
|
||||
}
|
||||
|
||||
/* Do foreign key constraint checks. */
|
||||
|
||||
err = row_discard_tablespace_foreign_key_checks(trx, table);
|
||||
|
|
@ -3216,6 +3226,11 @@ row_discard_tablespace_for_mysql(
|
|||
if (err == DB_SUCCESS) {
|
||||
err = row_discard_tablespace(trx, table);
|
||||
}
|
||||
|
||||
if (fts_exist && err != DB_SUCCESS) {
|
||||
fts_optimize_add_table(table);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return(row_discard_tablespace_end(trx, table, err));
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
|
||||
Copyright (c) 2008, 2009 Google Inc.
|
||||
Copyright (c) 2009, Percona Inc.
|
||||
Copyright (c) 2013, 2019, MariaDB Corporation.
|
||||
Copyright (c) 2013, 2020, MariaDB Corporation.
|
||||
|
||||
Portions of this file contain modifications contributed and copyrighted by
|
||||
Google, Inc. Those modifications are gratefully acknowledged and are described
|
||||
|
|
@ -673,7 +673,6 @@ current_time % 60 == 0 and no tasks will be performed when
|
|||
current_time % 5 != 0. */
|
||||
|
||||
# define SRV_MASTER_CHECKPOINT_INTERVAL (7)
|
||||
# define SRV_MASTER_PURGE_INTERVAL (10)
|
||||
#ifdef MEM_PERIODIC_CHECK
|
||||
# define SRV_MASTER_MEM_VALIDATE_INTERVAL (13)
|
||||
#endif /* MEM_PERIODIC_CHECK */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue