summaryrefslogtreecommitdiff
path: root/sql/sql_statistics.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2013-01-08 08:17:51 -0800
committerIgor Babaev <igor@askmonty.org>2013-01-08 08:17:51 -0800
commit01dca17a9c2255845c050c44e152ece256c9112e (patch)
treea1a792933c970559fd488218725aed1becbe20f5 /sql/sql_statistics.h
parente44253a125c3baf7ea448edce77389810425df2a (diff)
downloadmariadb-git-01dca17a9c2255845c050c44e152ece256c9112e.tar.gz
Fixed bug mdev-3979.
Made allocation of memory for statistical data in a table share to be thread safe. This memory is now allocated in a special MEM_ROOT that is created for each table share.
Diffstat (limited to 'sql/sql_statistics.h')
-rw-r--r--sql/sql_statistics.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_statistics.h b/sql/sql_statistics.h
index e24e4beae74..17f22cec4e5 100644
--- a/sql/sql_statistics.h
+++ b/sql/sql_statistics.h
@@ -102,6 +102,7 @@ class Table_statistics
public:
my_bool cardinality_is_null; /* TRUE if the cardinality is unknown */
ha_rows cardinality; /* Number of rows in the table */
+ uchar *min_max_record_buffers; /* Record buffers for min/max values */
Column_statistics *column_stats; /* Array of statistical data for columns */
Index_statistics *index_stats; /* Array of statistical data for indexes */
ulong *idx_avg_frequency; /* Array of records per key for index prefixes */