cd2af6ffef
Cleaned up the code based on the code review
...
Added missing error condition checks and cleaned up code.
2016-02-16 13:06:25 +02:00
9306b9d68c
Added detection of checksums split across two packets
...
The checksums should now be processed properly event if the event is in more than
one packet.
2016-02-16 13:06:25 +02:00
2b7e2d3043
Added checksum calculations for events larger than 2^24 bytes
...
The checksums are now properly calculated for large events that span multiple
SQL packets.
2016-02-16 13:06:25 +02:00
ae33df3cbc
Large events are now processed in chuncks
...
The router->last_written is used to store the position where the last event was
written. The replication header is also stored in a separate structure in
the router which is used later when the last packet of a multi-packet event
arrives.
2016-02-16 13:06:24 +02:00
d3e1d4dd2f
First fix for 16MB handling in the master part
...
First fix for 16MB handling in the master part.
Distribute events to up to date slave is not included yet
2016-02-16 13:06:24 +02:00
d9b022db10
Protect updating of router when rotating.
...
When rotating, all state variables of router are now updated while
protected by the router->binlog_lock lock.
2016-01-28 15:23:22 +02:00
2715d3f8e4
Removed the 16 chars limitation for binlog file name
...
Removed the 16 chars limitation for binlog file name
2016-01-07 15:30:57 +01:00
b55f100e1f
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
2015-12-17 15:45:16 +01:00
40cfacfec4
Remove file from slave
...
The binlog file is now always opened when it is needed and closed
when we are finished with it. That will remove any potential
file concurrency issues between different threads dealing with
the same slave.
2015-12-11 17:25:27 +01:00
592e4d06cb
Changed name for bad fd
...
Changed name for bad fd
2015-11-30 10:22:47 +01:00
ba135c5548
Log messages fix with slave ip:port and id
...
Log messages fix with slave ip:port and id
2015-11-30 10:22:12 +01:00
00c506b029
Fix for rotate and catchup with transaction_safety = 1
...
Fix for rotate and catchup with transaction_safety = 1
2015-11-06 18:14:52 +01:00
d51ac7ab7d
Disconnect slave when pos is UNSAFE
...
Disconnect slave when pos is UNSAFE instead of sending an error that
stops the replication
2015-11-04 16:24:46 +01:00
3be5238bd7
Fixed indentation.
2015-10-23 15:05:51 +03:00
63f4bc3aec
Changed from router->binlog_lock to router->lock for transaction safety code and cleaned up code.
2015-10-23 14:54:08 +03:00
40ffe21dd8
Added a variable for current event being processed after a transaction is committed.
2015-10-23 12:33:51 +03:00
d31e081e45
Changed log messages for blr_read_binlog, added slave send error feaure
...
Changed log messages for blr_read_binlog, added slave send error feaure.
When blr_read_binlog detects an error an error message with 1236 code
is sent to the slave and it will stop the replication to binlogrouter
2015-10-01 17:03:48 +02:00
e043d204b4
blr_send_custom_error with errno and state
...
blr_send_custom_error with errno and state
2015-09-30 15:59:48 +02:00
f9ee9ca028
Addition of send_slave_heartbeat option
...
Addition of send_slave_heartbeat option
2015-09-30 14:39:26 +02:00
b6df52a68e
Addition of slave heartbeat check
...
Addition of slave heartbeat check
2015-09-25 15:58:36 +02:00
db93d868f8
Removed previous conflict line
...
Removed previous conflict line
2015-09-10 14:58:09 +02:00
c9fd82839b
Merge from develop
...
Merge from develop
2015-09-10 14:53:50 +02:00
7d00a3670d
Addition of maxbinlogcheck, a new utility in bin
...
Addition of maxbinlogcheck, a new utility in bin
2015-09-10 14:37:49 +02:00
f25b6389fc
Support for SHOW WARNINGS
...
Support for SHOW WARNINGS
2015-09-04 22:30:02 +02:00
5153c16eac
Added BLRM_MASTER_REGITRATION_QUERY_LEN constant
...
Added BLRM_MASTER_REGITRATION_QUERY_LEN constant
2015-08-25 11:27:15 +02:00
3fe0c074c5
Added strerror_r and new constants
...
Added strerror_r and new constants
2015-08-24 15:02:22 +02:00
599e2fdc6c
Small improvements for string buffers
...
Small improvements an constants added in string buffers
2015-08-24 11:38:24 +02:00
e103aa46a8
Addition of BLR_TYPE_STRING and BLR_TYPE_INT
...
Addition of BLR_TYPE_STRING and BLR_TYPE_INT for SQL variable names
replies
2015-08-24 10:11:26 +02:00
4242d28e13
Added support for new options
...
Added support for new options:
master_uuid, master_hostname, master_version
If set, those values will be sent to slaves instead of
saved master responses
2015-08-21 16:31:40 +02:00
57c2d196d4
Added validation and parsing for CHANGE MASTER TO
...
Added validation and parsing for CHANGE MASTER TO
2015-08-20 09:59:57 +02:00
895989446d
MXS-224: Added SQL commands to the log message at slave disconnect time
...
MXS-224: Added SQL commands to the log message at slave disconnect time
2015-08-19 12:04:15 +02:00
de902f316a
MXS-224: Added SQL commands to the log message at slave disconnect time
...
MXS-224: Added SQL commands to the log message at slave disconnect time
2015-08-19 11:58:42 +02:00
53c35b05ab
Added default heartbeat set via define and blr_last_event_description
...
Added default heartbeat set via define and blr_last_event_description()
2015-08-17 14:05:41 +02:00
e5a2e5cd1f
Improvements added in stop/start slave and change master
...
Improvements added in stop/start slave and change master
2015-08-06 17:47:37 +02:00
f91a339674
Initial implementation of transaction safety
...
Initial implementation of transaction safety
2015-08-05 14:29:17 +02:00
61c47375d5
Merge branch 'develop' into 1.2.1-binlog_router
...
Conflicts:
server/core/server.c
server/include/server.h
server/modules/include/blr.h
server/modules/routing/binlog/blr.c
server/modules/routing/binlog/blr_file.c
server/modules/routing/binlog/blr_master.c
server/modules/routing/binlog/blr_slave.c
2015-08-04 07:59:44 -04:00
aa6294f1f2
Fixed binlogrouter not working with C99 flags.
2015-07-20 08:59:35 +03:00
78eab19c62
Fixed compiler warnings.
2015-07-14 17:13:09 +03:00
9728ec6169
Addition of new mariadb10 events to diagnostics()
...
Addition of new mariadb10 events to diagnostics()
2015-07-13 12:54:04 +03:00
5165c6b981
master.ini contains now master configuration
...
master.ini contains now master configuration
It can be created or modified by CHANGE MASTER TO
Added new BLRM_UNCONFIGURED state
2015-06-30 16:10:02 +02:00
7a0a010a86
CHANGE MASTER error messages improvement
...
CHANGE MASTER error messages improvement
New Start Slave implementation
Error Handling when master_state is BLRM_BINLOGDUMP: in case of error
master replication stops and new state is BLRM_SLAVE_STOPPED
2015-06-23 15:34:56 +02:00
2816d87013
fix for missing crc check in blr_slave_fake_rotate()
...
fix for missing crc check in blr_slave_fake_rotate()
fix for missing @@version_comment in order to allow mysql client get in
2015-06-22 18:21:43 +02:00
2d9c9425c5
Merge branch 'binlog_router_mariadb10' into dev-mdb10
...
Conflicts:
server/core/config.c
2015-06-22 19:16:38 +03:00
8c900e73de
removed extra blr_file_add_magic
...
removed extra blr_file_add_magic
2015-06-22 10:46:00 +02:00
5bc07c5100
Added error handling in BINLOG_DUMP phase
...
Added error handling in BINLOG_DUMP phase: router goes into
BLRM_SLAVE_STOPPED state
Removed blr_file_add_magic called twice
2015-06-22 10:35:02 +02:00
2db4f4d771
Added error_msg to blr_slave_send_slave_status()
...
Added error_msg to blr_slave_send_slave_status()
2015-06-08 19:16:50 +02:00
945e2f8132
added checks in blr_stop_slave()
...
errorReply sets mysql_errno into router struct
blr_slave_send_slave_status displays mysql errno
added checks in blr_stop_slave()
2015-06-05 17:37:05 +02:00
7634f22a94
STOP/START SLAVE first implementation
...
STOP/START SLAVE first implementation
2015-05-25 17:37:39 +02:00
f991e58b57
MariaDB 10 master requires MariaDB 10 slaves
...
Only MariaDB 10 slaves can register to binblog server with a MariaDB 10
Master
2015-05-11 11:43:21 +02:00
7d48779913
Added MAX_EVENT_TYPE_MARIADB10 check
...
Added MAX_EVENT_TYPE_MARIADB10 check for router->mariadb10_compat
2015-05-07 17:02:33 +02:00