summaryrefslogtreecommitdiff
path: root/sql/sql_statistics.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-05-15 17:55:01 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-05-15 17:55:01 +0300
commit6a6bcc53b8767dfbb4dc86bad3e90a276c55f605 (patch)
tree04116d0e438cfcf3a3b6a7557d5ec8c570255db6 /sql/sql_statistics.cc
parent3eadb135fd7b7e2d40fd6b9a819ac3245043f781 (diff)
parentff66d65a096ec02dda1ab449d84a40361551085c (diff)
downloadmariadb-git-6a6bcc53b8767dfbb4dc86bad3e90a276c55f605.tar.gz
Merge 10.2 into 10.3
Diffstat (limited to 'sql/sql_statistics.cc')
-rw-r--r--sql/sql_statistics.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_statistics.cc b/sql/sql_statistics.cc
index a928b9e266e..83013b8b1e7 100644
--- a/sql/sql_statistics.cc
+++ b/sql/sql_statistics.cc
@@ -1669,6 +1669,7 @@ public:
*/
virtual bool add()
{
+ table_field->mark_unused_memory_as_defined();
return tree->unique_add(table_field->ptr);
}