Skip to content

Commit

Permalink
perfschema is disabled until it's enabled
Browse files Browse the repository at this point in the history
as it was thinking it was enabled even if initialize_performance_schema
wasn't called at all
  • Loading branch information
vuvova committed Apr 5, 2024
1 parent 53af3d8 commit 1902802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion storage/perfschema/pfs_instr_class.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
Indicate if the performance schema is enabled.
This flag is set at startup, and never changes.
*/
my_bool pfs_enabled= TRUE;
my_bool pfs_enabled= FALSE;

/**
PFS_INSTRUMENT option settings array
Expand Down
1 change: 1 addition & 0 deletions storage/perfschema/unittest/pfs_instr_class-t.cc
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ void do_all_tests()
int main(int argc, char **argv)
{
plan(209);
pfs_enabled= 1;
MY_INIT(argv[0]);
do_all_tests();
my_end(0);
Expand Down

0 comments on commit 1902802

Please sign in to comment.