Skip to content

Commit

Permalink
Change default of histogram_type to JSON_HB
Browse files Browse the repository at this point in the history
  • Loading branch information
montywi authored and spetrunia committed Feb 3, 2023
1 parent 98879f8 commit d645025
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mysql-test/main/mysqld--help.result
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ gtid-pos-auto-engines
gtid-strict-mode FALSE
help TRUE
histogram-size 254
histogram-type DOUBLE_PREC_HB
histogram-type JSON_HB
host-cache-size 279
idle-readonly-transaction-timeout 0
idle-transaction-timeout 0
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/sys_vars/r/histogram_type_basic.result
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SET @@global.histogram_type = 1;
SET @@global.histogram_type = DEFAULT;
SELECT @@global.histogram_type;
@@global.histogram_type
DOUBLE_PREC_HB
JSON_HB
SET @@global.histogram_type = 0;
SELECT @@global.histogram_type;
@@global.histogram_type
Expand Down
2 changes: 1 addition & 1 deletion sql/sys_vars.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6670,7 +6670,7 @@ static Sys_var_enum Sys_histogram_type(
"DOUBLE_PREC_HB - double precision height-balanced, "
"JSON_HB - height-balanced, stored as JSON.",
SESSION_VAR(histogram_type), CMD_LINE(REQUIRED_ARG),
histogram_types, DEFAULT(1));
histogram_types, DEFAULT(2));

static Sys_var_mybool Sys_no_thread_alarm(
"debug_no_thread_alarm",
Expand Down

0 comments on commit d645025

Please sign in to comment.