summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2019-10-02 16:04:52 +0400
committerSergey Vojtovich <svoj@mariadb.org>2019-10-07 13:30:22 +0400
commitadefaeffcce7c4ae0844f72dd920603b35285d40 (patch)
treee5396eeec14a2283b36f5b0ff208562a21e7ef99 /sql/sql_class.h
parente43791d4dc8feb2c02a08ce73c0bb0e2c320018c (diff)
downloadmariadb-git-adefaeffcce7c4ae0844f72dd920603b35285d40.tar.gz
MDEV-19536 - Server crash or ASAN heap-use-after-free in is_temporary_table /
read_statistics_for_tables_if_needed Regression after 279a907, read_statistics_for_tables_if_needed() was called after open_normal_and_derived_tables() failure. Fixed by moving read_statistics_for_tables() call to a branch of get_schema_stat_record() where result of open_normal_and_derived_tables() is checked. Removed THD::force_read_stats, added read_statistics_for_tables() instead. Simplified away statistics_for_command_is_needed().
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 8a4d8ff06a3..6c622648ac7 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -2200,9 +2200,6 @@ public:
*/
bool create_tmp_table_for_derived;
- /* The flag to force reading statistics from EITS tables */
- bool force_read_stats;
-
bool save_prep_leaf_list;
/* container for handler's private per-connection data */