19 #include "ha_ndbcluster_glue.h"
24 #ifdef HAVE_NDB_BINLOG
26 extern Master_info *active_mi;
29 uint32 ndb_mi_get_master_server_id()
31 return (uint32) active_mi->master_id;
34 const char* ndb_mi_get_group_master_log_name()
36 #if MYSQL_VERSION_ID < 50600
37 return active_mi->rli.group_master_log_name;
39 return active_mi->rli->get_group_master_log_name();
43 uint64 ndb_mi_get_group_master_log_pos()
45 #if MYSQL_VERSION_ID < 50600
46 return (uint64) active_mi->rli.group_master_log_pos;
48 return (uint64) active_mi->rli->get_group_master_log_pos();
52 uint64 ndb_mi_get_future_event_relay_log_pos()
54 #if MYSQL_VERSION_ID < 50600
55 return (uint64) active_mi->rli.future_event_relay_log_pos;
57 return (uint64) active_mi->rli->get_future_event_relay_log_pos();
61 uint64 ndb_mi_get_group_relay_log_pos()
63 #if MYSQL_VERSION_ID < 50600
64 return (uint64) active_mi->rli.group_relay_log_pos;
66 return (uint64) active_mi->rli->get_group_relay_log_pos();
70 bool ndb_mi_get_ignore_server_id(uint32 server_id)
72 return (active_mi->shall_ignore_server_id(server_id) != 0);
75 uint32 ndb_mi_get_slave_run_id()
77 return active_mi->rli->slave_run_id;