Added validation and parsing for CHANGE MASTER TO

Added validation and parsing for CHANGE MASTER TO
This commit is contained in:
MassimilianoPinto
2015-08-20 09:59:57 +02:00
parent ad5250c53d
commit 57c2d196d4
2 changed files with 366 additions and 190 deletions

View File

@ -15,7 +15,7 @@
* this program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Copyright MariaDB Corporation Ab 2014
* Copyright MariaDB Corporation Ab 2014-2015
*/
/**
@ -179,6 +179,16 @@ typedef struct master_server_config {
char *filestem;
} MASTER_SERVER_CFG;
/* Config struct for CHANGE MASTER TO options */
typedef struct change_master_options {
char *host;
char *port;
char *binlog_file;
char *binlog_pos;
char *user;
char *password;
} CHANGE_MASTER_OPTIONS;
/**
* Packet header for replication messages
*/