summaryrefslogtreecommitdiff
path: root/databases/mysql80-server/files/patch-sql_histograms_histogram.h
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql80-server/files/patch-sql_histograms_histogram.h')
-rw-r--r--databases/mysql80-server/files/patch-sql_histograms_histogram.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/mysql80-server/files/patch-sql_histograms_histogram.h b/databases/mysql80-server/files/patch-sql_histograms_histogram.h
new file mode 100644
index 000000000000..73256070a0a6
--- /dev/null
+++ b/databases/mysql80-server/files/patch-sql_histograms_histogram.h
@@ -0,0 +1,11 @@
+--- sql/histograms/histogram.h.orig 2017-01-05 16:18:44 UTC
++++ sql/histograms/histogram.h
+@@ -111,7 +111,7 @@ public:
+
+ // Typedefs.
+ template<typename T>
+-using value_map_allocator = Memroot_allocator<std::pair<T, ha_rows> >;
++using value_map_allocator = Memroot_allocator<std::pair<const T, ha_rows> >;
+
+ template<typename T>
+ using value_map_type = std::map<T, ha_rows, Histogram_comparator,