My Project
ndb_global_schema_lock_guard.h
00001 /*
00002    Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
00003 
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; version 2 of the License.
00007 
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011    GNU General Public License for more details.
00012 
00013    You should have received a copy of the GNU General Public License
00014    along with this program; if not, write to the Free Software
00015    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
00016 */
00017 
00018 #ifndef NDB_GLOBAL_SCHEMA_LOCK_GUARD_H
00019 #define NDB_GLOBAL_SCHEMA_LOCK_GUARD_H
00020 
00021 #include <mysql/plugin.h>
00022 
00023 class Ndb_global_schema_lock_guard
00024 {
00025 public:
00026   Ndb_global_schema_lock_guard(THD *thd);
00027   ~Ndb_global_schema_lock_guard();
00028   int lock(bool no_lock_queue=false,
00029            bool report_cluster_disconnected=true);
00030 private:
00031   THD* m_thd;
00032   bool m_locked;
00033 };
00034 
00035 #endif
00036 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines