diff options
Diffstat (limited to 'databases/mysql80-server/files/patch-sql_histograms_singleton.h')
| -rw-r--r-- | databases/mysql80-server/files/patch-sql_histograms_singleton.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/mysql80-server/files/patch-sql_histograms_singleton.h b/databases/mysql80-server/files/patch-sql_histograms_singleton.h new file mode 100644 index 000000000000..ab5aae1f0edc --- /dev/null +++ b/databases/mysql80-server/files/patch-sql_histograms_singleton.h @@ -0,0 +1,20 @@ +--- sql/histograms/singleton.h.orig 2017-01-05 16:21:18 UTC ++++ sql/histograms/singleton.h +@@ -89,7 +89,7 @@ private: + + /// The buckets for this histogram [key, cumulative frequency]. + std::map<const T, double, Histogram_comparator, +- Memroot_allocator<std::pair<T, double> > > m_buckets; ++ Memroot_allocator<std::pair<const T, double> > > m_buckets; + public: + /** + Singleton constructor. +@@ -162,7 +162,7 @@ private: + + @return true on error, false otherwise + */ +- static bool create_json_bucket(const std::pair<T, double> &bucket, ++ static bool create_json_bucket(const std::pair<const T, double> &bucket, + Json_array *json_bucket); + }; + |
