summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-05-26 11:54:55 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-05-26 11:54:55 +0300
commitca38b6e42791a6edbd3cc0b626a8d06b7776e76b (patch)
treef0b9f34521554ce94ef9a5bd6c7e5f595459240f /sql/table.h
parentea7830eef48333e28f98a9b91f05a95735b465a3 (diff)
parent7476e8c7cdd73d60294126a2840baee97e7644b6 (diff)
downloadmariadb-git-ca38b6e42791a6edbd3cc0b626a8d06b7776e76b.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sql/table.h b/sql/table.h
index 90a46db355d..36f2f546755 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -1373,8 +1373,8 @@ public:
bool insert_or_update; /* Can be used by the handler */
bool alias_name_used; /* true if table_name is alias */
bool get_fields_in_item_tree; /* Signal to fix_field */
- bool m_needs_reopen;
private:
+ bool m_needs_reopen;
bool created; /* For tmp tables. TRUE <=> tmp table was actually created.*/
public:
#ifdef HAVE_REPLICATION
@@ -1478,6 +1478,16 @@ public:
/** Should this instance of the table be reopened? */
inline bool needs_reopen()
{ return !db_stat || m_needs_reopen; }
+ /*
+ Mark that all current connection instances of the table should be
+ reopen at end of statement
+ */
+ void mark_table_for_reopen();
+ /* Should only be called from Locked_tables_list::mark_table_for_reopen() */
+ void internal_set_needs_reopen(bool value)
+ {
+ m_needs_reopen= value;
+ }
bool alloc_keys(uint key_count);
bool check_tmp_key(uint key, uint key_parts,