revision-id: 2308bd5fbe3f63f93879e9c490ed8154c8de528b (mariadb-10.6.1-116-g2308bd5fbe3) parent(s): 57cc13d177067979dad47307dac8ea41621899c7 author: Sergei Petrunia committer: Sergei Petrunia timestamp: 2021-09-04 17:37:24 +0300 message: Rollback a change from previous commit --- sql/opt_histogram_json.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sql/opt_histogram_json.h b/sql/opt_histogram_json.h index 3fbba8814dd..4cb61e95293 100644 --- a/sql/opt_histogram_json.h +++ b/sql/opt_histogram_json.h @@ -56,14 +56,12 @@ class Histogram_json_hb : public Histogram_base /* @brief - Legacy: this returns the size of the histogram on disk. - - @detail - This is only called at collection time when json_text is non-empty. + This used to be the size of the histogram on disk, which was redundant + (one can check the size directly). Return the number of buckets instead. */ uint get_size() override { - return json_text.size(); + return size; } void init_for_collection(MEM_ROOT *mem_root, Histogram_type htype_arg,