Skip to content

Commit 1902802

Browse files
committed
perfschema is disabled until it's enabled
as it was thinking it was enabled even if initialize_performance_schema wasn't called at all
1 parent 53af3d8 commit 1902802

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

storage/perfschema/pfs_instr_class.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
Indicate if the performance schema is enabled.
5656
This flag is set at startup, and never changes.
5757
*/
58-
my_bool pfs_enabled= TRUE;
58+
my_bool pfs_enabled= FALSE;
5959

6060
/**
6161
PFS_INSTRUMENT option settings array

storage/perfschema/unittest/pfs_instr_class-t.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ void do_all_tests()
743743
int main(int argc, char **argv)
744744
{
745745
plan(209);
746+
pfs_enabled= 1;
746747
MY_INIT(argv[0]);
747748
do_all_tests();
748749
my_end(0);

0 commit comments

Comments
 (0)