perfschema is disabled until it's enabled

as it was thinking it was enabled even if initialize_performance_schema
wasn't called at all
This commit is contained in:
Sergei Golubchik 2024-03-28 21:31:24 +01:00
commit 190280205b
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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);