Skip to content

Commit

Permalink
Reimplementing MySQL Monitor #628
Browse files Browse the repository at this point in the history
Implementation of connect and ping
  • Loading branch information
renecannao committed Jul 22, 2016
1 parent ab2a39f commit b1292f8
Show file tree
Hide file tree
Showing 2 changed files with 621 additions and 33 deletions.
12 changes: 12 additions & 0 deletions include/MySQL_Monitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ class MySQL_Monitor_State_Data {
int handler(int fd, short event);
void next_event(int new_st, int status);
void unregister();
SQLite3DB *mondb;
// we are copying these from MySQL_Connection
// short wait_events;
// unsigned long long timeout;
MDB_ASYNC_ST async_state_machine;
int async_exit_status;
// int async_ping(short);
// void ping_start();
// void ping_cont(short event);
// MDB_ASYNC_ST handler2(short);
// void next_event(MDB_ASYNC_ST new_st);
};


Expand All @@ -73,6 +84,7 @@ class MySQL_Monitor {
~MySQL_Monitor();
void print_version();
void * monitor_connect();
// void * monitor_connect_thread(void *);
void * monitor_ping();
void * monitor_read_only();
void * monitor_replication_lag();
Expand Down
Loading

0 comments on commit b1292f8

Please sign in to comment.