a236b14eef
MXS-1075: Sqlite db for GTID - file, pos mapping
...
Use sqlite3 database instead of hash tables for GTID - file, pos mapping
2017-03-28 10:23:09 +02:00
9388dff7cf
Merge branch 'develop' into MXS-1075
2017-03-15 18:12:00 +01:00
147a1f88eb
Merge branch '2.1-ipv6' into develop
2017-03-13 13:18:08 +02:00
37dd561470
Add support for IPv6
...
Both the listeners and servers now support IPv6 addresses.
The namedserverfilter does not yet use the new structures and needs to be
fixed in a following commit.
2017-03-13 10:45:55 +02:00
cb69b3cbca
Merge branch 'develop' into MXS-1075
2017-03-09 15:08:04 +01:00
e1a1959bc2
Replace strerror_r with mxs_strerror
...
The mxs_strerror function requires no local buffer, thus making it simpler
and cleaner to use.
2017-03-09 09:36:57 +02:00
c1dc0e6f73
MXS-1075: simplify blr_slave_query: handle SELECT stmts
...
First simplification of blr_slave_query: SELECT stmts are handled by
blr_handle_select_smt()
2017-03-08 17:23:39 +01:00
670150c1c9
MXS-1075: added blr_fetch_mariadb_gtid() routine
...
Added generic blr_fetch_mariadb_gtid() routine
inst->binlog_name is now stored into MARIADB_GTID_INFO struct. (it was
missing)
2017-03-08 09:06:10 +01:00
656a38096c
Revert "MXS-1075: added blr_fetch_mariadb_gtid() routine"
...
This reverts commit b0afff73a1b9b1eacc617408d92d5117b7676f0e.
2017-03-08 08:57:59 +01:00
b0afff73a1
MXS-1075: added blr_fetch_mariadb_gtid() routine
...
Added generic blr_fetch_mariadb_gtid() routine
inst->binlog_name is now stored into MARIADB_GTID_INFO struct. (it was
missing)
2017-03-08 08:51:19 +01:00
5ea049cffc
MXS-1075: MariaDB 10 slave connecting with GTID
...
A MariaDB 10 slave connects to binlog server with GTID request
2017-03-06 14:41:24 +01:00
4e8bf1106b
MXS-1075: MariaDB 10 Slave registration with GTID
...
New SQL commands are handled for MariaDB 10 slave registration with GTID
2017-03-06 08:56:26 +01:00
1061344de9
MXS-1075: save all received MariaDB GTIds
...
The GTID saving, which will allow slave to connect with GTID, is done
only with transaction_safety = on
2017-03-02 13:07:21 +01:00
304b5ced29
MXS-1075: MariaDB 10 GTID stored and shown only for transaction safety on
...
MariaDB 10 GTID is detected and stored only if transaction_safety
option is on.
SELECT @@gtid_current_pos and “maxadmin show service $service_name” can
return it
2017-02-28 15:19:57 +01:00
054ddcb3dd
MXS-1075: pending_transaction struct added
...
New pending_transaction added and master_transaction_t values are now
used in all files
2017-02-28 13:50:38 +01:00
68f99ae305
Remove unused DCB callback code
...
The highwater and lowwater callbacks were never registered for the client
DCBs in the binlogrouter.
The DCB hangup callbacks were never called by the core and were replaced
with fake hangup events in an earlier version.
2017-02-27 09:25:15 +02:00
a0b599730c
Detect and store MariaDB GTID
...
If Binlog Server is running with MariaDB 10 compatibility then the
found GTID is stored in router->mariadb_gtid
2017-02-15 08:29:38 +01:00
71707c8505
Merge branch '2.1' into develop
2017-02-15 08:48:36 +02:00
49cc2b52e3
Merge branch '2.1.0' into 2.1
2017-02-15 08:44:55 +02:00
5648f708af
Update license to BSL 1.1
2017-02-14 21:42:28 +02:00
0838401b32
Merge branch '2.1' into develop
2017-02-14 17:54:27 +02:00
825782799f
Zendesk's Maxwell Compatibility ( #119 )
...
* Binlog router: Introduce maxwell_compatibility flag
* Binlog router: Handle 'server vars' query
This is a step towards using MaxScale with Zendesk's Maxwell.
* Binlog router: Handle results charset query
* Binlog router: Handle sql_mode query
* Binlog router: Handle server_id query
* Binlog router: Handle 'binlog vars' queries
* Binlog router: Handle @@lower_case_table_names query
* Binlog router: Handle @@global.binlog_checksum query
* Binlog router: DRY Maxwell SQL queries
2017-02-13 16:40:01 +01:00
acd66b4eb3
Fix compiler warnings
...
Added missing checks for return values of various function calls. Fixed
binlogrouter strerror_r usage and wrong buffer sizes.
2017-02-13 11:44:38 +02:00
a48be9badf
Format router modules
...
Formatted router modules with Astyle.
2017-01-17 14:48:43 +02:00
2cabcea211
Add definitions of MXS_MODULE_NAME to all modules
...
All modules now declare a name for the module. This is name is added as a
prefix to all messages logged by a module. The prefix should help
determine which part of the system logs a message.
2017-01-16 11:28:34 +02:00
162ae04d20
MXS-867: Binlog server encryption key has same format as MariaDB key file
...
Default algorithm is now AES_CBC.
The MariaDB 10.1 key file cannot be read as it might contain more than
1 rows.
2016-12-12 14:01:54 +01:00
d9ced5bbab
Fix binlogrouter build failure
...
The binlogrouter used the wrong variable name.
2016-12-08 10:11:55 +02:00
9444ded6da
Binlog encryption is now working with events larger than 16MBytes
...
Events larger than 16MBytes are now encrypted when being saved.
Some changes to binlog event details report and maxbinlogcheck supports
-H option for replication header display
2016-12-07 12:17:22 +01:00
b2e8a2d8c5
Develop merge
...
Develop merge:
this includes the new handling of events larger than 16MBytes
2016-12-05 16:38:48 +01:00
2f082cb7fb
Store large events in memory
...
Storing the large events in memory allows checksum calculations to be done
in one step. This also makes the encryption of events easier as they
require the complete event in memory.
2016-12-05 17:08:59 +02:00
d97e3587e0
MXS-878: Don't log an error for 10.1 slave connections
...
The error message was not needed as we know that the query is always
executed by 10.1 slaves.
2016-12-05 13:18:20 +02:00
aef6c7b099
Make directory name equal to the library name
...
* avro -> avrorouter
* binlog -> binlogrouter
2016-12-01 15:23:42 +02:00