Commit Graph

312 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
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
d490c2c509 Added casts to unsigned long to some log messages. 2015-04-08 10:54:42 +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
bb65222e89 Fixed wrong var name
Fixed wrong var name detection
2015-04-01 16:56:29 +02: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
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
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
6a12b387f7 Log message typo fixed
Log message typo fixed
2015-03-17 18:58:18 +01:00
35890e4e7c New log messages for DISCONNECT commands
New log messages for DISCONNECT commands
2015-03-17 18:43:00 +01:00
bf9d417187 Log message change for DISCONNECT SERVER
Log message change for DISCONNECT SERVER
2015-03-17 18:14:48 +01:00
fc6dd0a0a9 Added support for MariaDB 10.0 2015-03-17 12:04:11 +02:00
c1f3656790 Removed spinlock_release
Removed spinlock_release
2015-03-17 09:03:26 +01:00
b6cc739044 Fix to blr_file. 2015-03-12 18:37:07 +02:00
f5d9c1e6df Fixes to Coverity defects. 2015-03-09 10:12:01 +02:00
ea039dd01a Fixed to Coverity defects and a fix to tee filter not compiling with SS_DEBUG flag. 2015-03-07 06:00:01 +02:00
04310ae60e Fixed return code from slave reply routines
Fixed return code from slave reply routines

Fixed error reply packet len
2015-03-02 08:48:15 +01:00
46c4fefb00 Fixes to coverity defects 87601 87557 87548 87547 87546 87545 87544 87536 87535 87529 87528 2015-02-22 22:29:30 +02:00
22255a6045 Removed extra ; in soem blr_make_query calls - this breaks parsing when
one maxscale is chained from another
2015-02-20 16:07:09 +00:00
92e99ddfb7 Auto set router->masterid from master server-id
Automatically set router->masterid if not specified in the option: it’s
taken from  master server-id
2015-02-18 11:04:50 +01:00
517524a8b4 Addition of DISCONNECT ALL and DISCONNECT SERVER
Addition of DISCONNECT ALL and DISCONNECT SERVER server_id
Added dbc_close in closeSession
Changed slave mode output display in diagnostics
2015-02-17 18:29:03 +01:00
865cd82fee Addition of slave port and username in diagnostics
Addition of slave port and username in diagnostics
2015-02-17 11:32:41 +01:00
01eafd92c8 Fixed two errors in show slave status output. Master_UUID was
showing the variable name rather than the value and
Master_SSL_Verify_Server_cert was missing
2015-02-10 10:00:02 +00:00
eafdd43592 Add Master_Server_Id value to returned show slave status command 2015-02-10 08:36:31 +00:00
faca6b6d76 Merge branch 'blr' into develop 2015-02-09 20:58:55 +00:00
390df414df Addition of doxygen comments 2015-02-09 20:56:50 +00:00
b58e09cdb7 Addition of some extra log messages and seconds behind master calcuation 2015-02-09 20:50:23 +00:00
958cc73176 Add support for SELECT @@server_id 2015-02-09 16:07:01 +00:00
e3c8979ee1 Fix for missing statistics increment 2015-02-09 13:19:51 +00:00
6da16c9958 Some tidy up of binlog rotuer code 2015-02-06 20:46:36 +00:00
e91ad034a8 CRC issue 2015-02-06 17:53:41 +00:00
00c7dccdac Fix for checksum misisng in master rotate event 2015-02-06 14:30:15 +00:00
d4f5ca6bcb Merge branch 'blr' into develop
Addition of hashtable load and save. Caching of auth information
2015-02-06 11:52:51 +00:00
25e39f35c5 Fix to allow rotate of files without explicit rotate events when the master is offline 2015-02-06 11:45:20 +00:00
c611d63e94 Added protection for buffer overrun in COM_BINLOG_DUMP. 2015-02-05 09:37:56 +00:00
b9f36d6489 Addition of checksum handling in COM_BINLOG_DUMP 2015-02-05 09:15:45 +00:00
07536611d3 Add ability to extract values from the result set
Extract and action the @master_binlog_checksum value

Store master's uuid for use in show slave status

Support for MariaDB 5.5 masters
2015-02-04 15:59:28 +00:00
6bd8d1b507 Updated options procesign to allow either password= or passwd= for
compatibility with the way we set passwords in other places
2015-02-04 13:12:19 +00:00