summaryrefslogtreecommitdiff
path: root/storage/perfschema/pfs_check.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/perfschema/pfs_check.cc')
-rw-r--r--storage/perfschema/pfs_check.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/perfschema/pfs_check.cc b/storage/perfschema/pfs_check.cc
index c52be6f0da2..c8800e7ec96 100644
--- a/storage/perfschema/pfs_check.cc
+++ b/storage/perfschema/pfs_check.cc
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -55,6 +55,7 @@ void check_performance_schema()
PFS_engine_table_share::check_all_tables(thd);
+ thd->reset_globals();
delete thd;
DBUG_VOID_RETURN;
}