Changed behaviour for a slave requesting master_log_pos beyond binlog file size

Slave request for a log_pos behind binlog file size may result in a
disconnection or replication error:

if binlog file is latest one slave get disconnected otherwise an error
message is returned and replication stops
This commit is contained in:
MassimilianoPinto
2015-12-17 15:45:16 +01:00
parent 162e73f083
commit b55f100e1f
3 changed files with 44 additions and 2 deletions

View File

@ -185,6 +185,7 @@
#define SLAVE_POS_READ_ERR 0xff
#define SLAVE_POS_READ_UNSAFE 0xfe
#define SLAVE_POS_BAD_FD 0xfd
#define SLAVE_POS_BEYOND_EOF 0xfc
/**
* Some useful macros for examining the MySQL Response packets