My Project
|
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_MI_H 00019 #define NDB_MI_H 00020 00021 #include <my_global.h> 00022 00023 /* 00024 This file defines methods for interacting with the 00025 Master Info structure on a Slave MySQLD. 00026 These methods are only valid when running in an 00027 active slave thread. 00028 */ 00029 00030 /* 00031 Accessors 00032 */ 00033 uint32 ndb_mi_get_master_server_id(); 00034 const char* ndb_mi_get_group_master_log_name(); 00035 uint64 ndb_mi_get_group_master_log_pos(); 00036 uint64 ndb_mi_get_future_event_relay_log_pos(); 00037 uint64 ndb_mi_get_group_relay_log_pos(); 00038 bool ndb_mi_get_ignore_server_id(uint32 server_id); 00039 uint32 ndb_mi_get_slave_run_id(); 00040 00041 /* 00042 Relay log info related functions 00043 */ 00044 bool ndb_mi_get_in_relay_log_statement(class Relay_log_info* rli); 00045 00046 // #ifndef NDB_MI_H 00047 #endif