Skip to content

Commit 1861a2a

Browse files
committed
Rollback a change from previous commit
1 parent 9271bd1 commit 1861a2a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sql/opt_histogram_json.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,12 @@ class Histogram_json_hb : public Histogram_base
5656

5757
/*
5858
@brief
59-
Legacy: this returns the size of the histogram on disk.
60-
61-
@detail
62-
This is only called at collection time when json_text is non-empty.
59+
This used to be the size of the histogram on disk, which was redundant
60+
(one can check the size directly). Return the number of buckets instead.
6361
*/
6462
uint get_size() override
6563
{
66-
return json_text.size();
64+
return size;
6765
}
6866

6967
void init_for_collection(MEM_ROOT *mem_root, Histogram_type htype_arg,

0 commit comments

Comments
 (0)