mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -1871,20 +1871,23 @@ private:
|
||||
TABLE_LIST *m_locked_tables;
|
||||
TABLE_LIST **m_locked_tables_last;
|
||||
/** An auxiliary array used only in reopen_tables(). */
|
||||
TABLE **m_reopen_array;
|
||||
TABLE_LIST **m_reopen_array;
|
||||
/**
|
||||
Count the number of tables in m_locked_tables list. We can't
|
||||
rely on thd->lock->table_count because it excludes
|
||||
non-transactional temporary tables. We need to know
|
||||
an exact number of TABLE objects.
|
||||
*/
|
||||
size_t m_locked_tables_count;
|
||||
uint m_locked_tables_count;
|
||||
public:
|
||||
bool some_table_marked_for_reopen;
|
||||
|
||||
Locked_tables_list()
|
||||
:m_locked_tables(NULL),
|
||||
m_locked_tables_last(&m_locked_tables),
|
||||
m_reopen_array(NULL),
|
||||
m_locked_tables_count(0)
|
||||
m_locked_tables_count(0),
|
||||
some_table_marked_for_reopen(0)
|
||||
{
|
||||
init_sql_alloc(&m_locked_tables_root, "Locked_tables_list",
|
||||
MEM_ROOT_BLOCK_SIZE, 0,
|
||||
@ -1908,6 +1911,7 @@ public:
|
||||
bool restore_lock(THD *thd, TABLE_LIST *dst_table_list, TABLE *table,
|
||||
MYSQL_LOCK *lock);
|
||||
void add_back_last_deleted_lock(TABLE_LIST *dst_table_list);
|
||||
void mark_table_for_reopen(THD *thd, TABLE *table);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user