--- 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 > > m_buckets; + Memroot_allocator > > m_buckets; public: /** Singleton constructor. @@ -162,7 +162,7 @@ private: @return true on error, false otherwise */ - static bool create_json_bucket(const std::pair &bucket, + static bool create_json_bucket(const std::pair &bucket, Json_array *json_bucket); };