Commit Graph

1003 Commits

Author SHA1 Message Date
55249193a9 Updated post-install scripts and binlogrouter
Binlogrouter: Switched hard-coded maximum path values to PATH_MAX and used cache directory instead of MAXSCALE_HOME
Scripts: Updated with new executable file paths
2015-04-27 14:47:26 +03:00
1f21540f8c Make MaxScale handle zero-length files to aid bootstrapping.
When bootstrapping a binlog router to start it needs to know the first
file to use. You can provide this information in the config file but
that will never be up to date, or you can copy a file to the binlog
server and start maxscale. It will then carry on from the last file’s
current position.

The binlog files have a 4-byte magic prefix so to start from the beginning
(position 4) you need to add these to an empty file if you do this by
hand. If you don’t then maxscale will attempt to download from the
master at position 0 and the master will not accept this value. (This is
not apparent with a mysql client as change master to … master_log_pos
= 0 triggers a write of the 4 magic bytes and then asks the master for
information from position 4 [not 0]).

This patch makes MaxScale behave similarly and allows you to only
need to touch the first binlog file to be downloaded for it to do the
right thing.
2015-04-27 13:46:06 +03:00
17a7b2addb Updated more variables. 2015-04-26 20:08:27 +03:00
df9bc65430 Added variables that are used when installing instead of relative paths. 2015-04-25 18:35:47 +03:00
bbdfc3a5a7 Revert "Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop"
This reverts commit 58e85098f931f6337841b25126fad23b579a9b49, reversing
changes made to c89c7047053f0d6f89069d1b6da2f9caa856066b.
2015-04-24 17:57:29 +03:00
8b7158afda Merge remote-tracking branch 'origin/develop' into MXS-105 2015-04-24 15:40:07 +01:00
03badb9b7b Modifications to galera monitor to control whether selection of master is wanted. 2015-04-24 15:35:10 +01:00
e7cdf4d8ef Merge pull request #78 from sjmudd/develop
Make MaxScale handle zero-length files to aid bootstrapping.
2015-04-24 07:08:43 +03:00
21ad6fba2a Added option to disable slave recovery in readwritesplit. 2015-04-24 05:55:06 +03:00
087e2df5a4 Make MaxScale handle zero-length files to aid bootstrapping.
When bootstrapping a binlog router to start it needs to know the first
file to use. You can provide this information in the config file but
that will never be up to date, or you can copy a file to the binlog
server and start maxscale. It will then carry on from the last file’s
current position.

The binlog files have a 4-byte magic prefix so to start from the beginning
(position 4) you need to add these to an empty file if you do this by
hand. If you don’t then maxscale will attempt to download from the
master at position 0 and the master will not accept this value. (This is
not apparent with a mysql client as change master to … master_log_pos
= 0 triggers a write of the 4 magic bytes and then asks the master for
information from position 4 [not 0]).

This patch makes MaxScale behave similarly and allows you to only
need to touch the first binlog file to be downloaded for it to do the
right thing.
2015-04-23 20:26:56 +02:00
fbfbc9fda7 Added more statistics to schemarouter diagnostics. 2015-04-23 21:00:52 +03:00
8d4f301545 Added the option to disable session command history to readwritesplit. 2015-04-23 20:12:04 +03:00
d1551be54f Added support for disabling the saving of the session command history for the schemarouter. 2015-04-23 19:35:41 +03:00
811c13fe32 Added more statistics to the schemarouter. 2015-04-23 06:04:09 +03:00
6f870bd74c Added maximum session command amount for schemarouter. 2015-04-22 20:58:52 +03:00
060f68892d Fixed a memory leak in schemarouter. 2015-04-20 13:26:16 +03:00
1b3af7d61f Fixes to Coverity defects. 2015-04-16 19:41:49 +03:00
04a4adeb8a Added ordering of the output of SHOW DATABASES for schemarouter. 2015-04-15 21:37:16 +03:00
253c63e958 Fixed schemarouter not handling show databases queries spanning multiple buffers. 2015-04-14 18:50:19 +03:00
3fb59e020b Added more logging to trace log. 2015-04-09 22:07:53 +03:00
d490c2c509 Added casts to unsigned long to some log messages. 2015-04-08 10:54:42 +03:00
e13ab6689d Fixed coverity defects. 2015-04-03 07:56:45 +03:00
5ce1b742e9 Binlog Router, slave binlog_pos is now uint32
Binlog Router, slave binlog_pos is now uint32
2015-04-02 16:52:48 +02:00
3b6d71086e DISCONNECT logs now to message file
DISCONNECT logs now to message file
2015-04-02 10:21:43 +02:00
440a6ece59 Fix to MXS-78: https://mariadb.atlassian.net/browse/MXS-78
Literal USE statements are now parsed and classified as a database change queries.
2015-04-02 08:16:45 +03:00
ee2bb2be07 Added log message about 'auth_all_users' being now the default for schemarouter. 2015-04-01 18:46:59 +03:00
d2bda091fd Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop 2015-04-01 17:56:59 +03:00
bb65222e89 Fixed wrong var name
Fixed wrong var name detection
2015-04-01 16:56:29 +02:00
f2dbbe4a97 Added more schemarouter tests. 2015-04-01 15:23:23 +03:00
de88ae790d Fix to MXS-80: https://mariadb.atlassian.net/browse/MXS-80
Fixed a possible null pointer dereference and schemarouter client sessions not being closed properly when connecting with an empty database.
2015-04-01 11:18:11 +03:00
04a87acced Fix to MXS-79: https://mariadb.atlassian.net/browse/MXS-79
Added a check for empty database.
2015-04-01 10:53:30 +03:00
5fb7195091 Fixed extra ' in crc32 value check. 2015-04-01 10:22:24 +03:00
4c418a128d Combined some conditionals in blr_slave. 2015-04-01 10:10:37 +03:00
04229423fc Fix checksum for NONE
Fix checksum for NONE as mysqlbinlog sends SET
@master_binlog_checksum='NONE'
2015-04-01 08:30:34 +02:00
be968cfad2 Fixed missing subservices parameter in config. 2015-03-31 12:54:52 +03:00
e42f171564 Added support for direct connections to shardrouter. 2015-03-30 20:45:05 +03:00
5f422a96fc Fixed a memory leak in schemarouter. 2015-03-30 14:24:17 +03:00
8c36a45c69 Updated some logging to be only done if the logfiles are enabled. 2015-03-25 11:18:46 +02:00
5c68782050 Added more trace logging to readcounnroute, schemarouter and tee. 2015-03-24 21:28:03 +02:00
6b8ffe7506 Fixed subselects not working without explicit table names. 2015-03-24 10:07:49 +02:00
da406db292 Changed install path to /usr/local/mariadb-maxscale 2015-03-23 20:12:56 +02:00
7cfc1d3cc9 Chaged MaxScale default installation directory to /usr/local/mariadb/maxscale and MaxAdmin password to 'mariadb'. 2015-03-23 14:53:31 +02:00
163e598f8a Added error logging to schemarouter about cross-database queries. 2015-03-19 22:18:20 +02:00
3a50b308b0 Set CPack RPM packaging version to 1 and added a RUNNING option to readconnroute. 2015-03-19 20:11:22 +02:00
b4f5a4eb9f Fix to MXS-32: https://mariadb.atlassian.net/browse/MXS-32
readconnroute now accepts RUNNING as server status when no router_options are given.
2015-03-19 15:44:14 +02:00
29dcd93979 MariaDB 10 support and checksum fix
MariaDB 10 support and checksum fix
2015-03-19 09:56:00 +01:00
646952290e Fix added for binlog_checksum=NONE
Fix added for binlog_checksum=NONE
2015-03-18 17:43:48 +01:00
69dd1a5935 Merge branch 'develop' into blr_mariadb10 2015-03-18 12:01:03 +01:00
4006052887 Fix in DISCONNECT SERVER reply
Fix in DISCONNECT SERVER reply
2015-03-17 19:38:21 +01:00
c7e1bd5052 Added error message of DISCONNECT
Added error message of DISCONNECT when gwbuf_alloc may fail
2015-03-17 19:18:10 +01:00