Commit Graph

1318 Commits

Author SHA1 Message Date
9ce225c2cb Added log manager initialization flag that prints all logs to stdout. 2015-04-29 11:20:40 +03:00
3874400abf Fixed resource leak in blr_file. 2015-04-28 11:45:53 +03:00
9ef66a6028 The filter harness no longer builds the MaxScale core twice. 2015-04-28 11:23:40 +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
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
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
8bc004db26 Merge pull request #77 from tanji/MXS-95
Galera monitor improvement (MXS-95)
2015-04-21 04:38:30 +03:00
060ebc3880 Add support for Galera xtrabackup donor availability 2015-04-20 14:45:03 +02:00
060f68892d Fixed a memory leak in schemarouter. 2015-04-20 13:26:16 +03:00
1188da1210 Added more logging to tee filter. 2015-04-16 23:11:35 +03:00
1b3af7d61f Fixes to Coverity defects. 2015-04-16 19:41:49 +03:00
bf83ce9db3 Merge branch 'wildcard_auth' into develop 2015-04-15 21:41:07 +03:00
04a4adeb8a Added ordering of the output of SHOW DATABASES for schemarouter. 2015-04-15 21:37:16 +03:00
051d891680 Added utility functions to skygw_utils and cleaned up tee filter. 2015-04-15 12:42:28 +03:00
d16e4fe134 Added an option for optimization of wildcard grants to individual grants. The default behavior now checks first for specific grants to a database the wildcard grants. 2015-04-15 06:51:52 +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
9deb627360 Changed the names of the logs for the dbfwfilter ruleparser. 2015-04-04 05:32:45 +03:00
2471ebf55f Small update to rule parser. 2015-04-03 10:53:05 +03:00
89ca0f420a Added a rule parsing tool for the dbfwfilter. The tool can be build with the -DBUILD_TOOLS=Y flag for CMake. 2015-04-03 10:37:21 +03:00
e13ab6689d Fixed coverity defects. 2015-04-03 07:56:45 +03:00
a65c790c3b Fixed dbfwfilter tests. 2015-04-03 06:22:30 +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
fa7e0ea7c0 Added error message for multi-statements to dbfwfilter. 2015-04-02 16:47:43 +03:00
795a683c55 Added option for controlling case sensitivity of dbfwfilter regex. 2015-04-02 16:31:34 +03:00
10f97572de Fixed double quotes not woring with regex rules. 2015-04-02 16:20:36 +03:00
bd9fea4b3d Added support for comment lines in rules. 2015-04-02 14:53:49 +03: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
3b11a945cb Added more logging messages for unexpected tokens that do not affect the behavior. 2015-03-31 19:08:34 +03:00
cb3014d141 Fixed parsing errors and made log messages more descriptive in dbfwfilter. 2015-03-31 18:33:47 +03:00
be968cfad2 Fixed missing subservices parameter in config. 2015-03-31 12:54:52 +03:00
7c89f49f82 Fix to MXS-74: https://mariadb.atlassian.net/browse/MXS-74
Added missing check for NULL pointer.
2015-03-31 04:21:43 +03:00