MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pfs_check.cc
Go to the documentation of this file.
1 /* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15 
25 #include "my_global.h"
26 #include "pfs_server.h"
27 #include "pfs_engine_table.h"
28 
29 /*
30 */
31 
46 {
47  DBUG_ENTER("check_performance_schema");
48 
49  THD *thd= new THD();
50  if (thd == NULL)
51  DBUG_VOID_RETURN;
52 
53  thd->thread_stack= (char*) &thd;
54  thd->store_globals();
55 
57 
58  delete thd;
59  /* Remember that we don't have a THD */
60  my_pthread_setspecific_ptr(THR_THD, 0);
61  DBUG_VOID_RETURN;
62 }
63