Commit Graph

1216 Commits

Author SHA1 Message Date
a4e7074f3e Merge pull request #2 from hholzgra/bugzilla-435
SQL comments require whitespace between "--" and comment text
2014-05-22 08:39:35 +01:00
23956d737b Changed bash-related comparison equality operator '==' to generic '=' 2014-05-21 22:10:40 +03:00
77299fea2e Added space character between '--' and comment text in sql scripts. 2014-05-21 22:05:13 +03:00
10dcda4827 "==" is a bash-only operator not known to pure posix shells,
and in the context it's used in here it is the same as "=" anyway
2014-05-21 19:25:21 +02:00
d0aeeb13cc SQL comments require whitespace between "--" and comment text 2014-05-21 18:46:56 +02:00
c1d39999ff Improvements to debug interface & blr updates 2014-05-21 17:25:21 +01:00
c28052d5a4 Manual merge from master to develop. Incliding fix for bug #425 http://bugs.skysql.com/show_bug.cgi?id=425 2014-05-21 15:41:39 +03:00
aa6dd6cc4a Merge branch 'bug425' 2014-05-21 09:27:13 +03:00
e19157e674 Removed another invalid assert. It is allowed to read more or less than the first arrived packet contains. 2014-05-21 09:25:57 +03:00
e6cdfa4dd4 Removed another invalid assert. It is allowed to read less or more than content of the first arrived packet. 2014-05-21 09:22:36 +03:00
af84b9560a Merge branch 'bug425' of https://github.com/skysql/MaxScale into bug425 2014-05-20 22:42:07 +03:00
ebcf4afa52 Invalid invariant in assert caused MaxScale to trap if more bytes were read than the first mysql packet contained according to the mysql packet length field. Since it is typical that session updates and mysql packets come in same transfer this check fails in correct cases as well.
Removed assertion.
2014-05-20 22:34:43 +03:00
8b3ea0c4d9 Added ability to use the service name in a show service command 2014-05-19 18:20:03 +01:00
d52f761b2d Fix missing GWBUF queue 2014-05-19 15:18:09 +01:00
6d83e48b87 Merge 2014-05-19 13:47:15 +01:00
9777e83a5a Merge branch 'master' into blr 2014-05-19 13:46:47 +01:00
cbed38f551 Merge pull request #1 from hholzgra/devel-test-readme
added description on how to run the test suite
2014-05-19 13:30:16 +01:00
a007f68dcc added description on how to run the test suite 2014-05-19 14:24:37 +02:00
854d7d7c68 Updated debug command plugin. 2014-05-19 12:31:56 +01:00
417ddc7d7f Merge branch 'master' of https://github.com/skysql/MaxScale 2014-05-17 23:24:10 +02:00
5c39682e40 Added message printing telling what file provided the module which was loaded. 2014-05-17 23:10:03 +02:00
d75e775cc1 Reprinted documents
Reprinted documents
2014-05-17 10:01:43 +02:00
7d703e942c Reprinted release notes 2014-05-17 07:26:23 +01:00
29d247319d Fixed issue with bin log event straddling buffers 2014-05-17 07:25:03 +01:00
196c6aacca Delete MaxScale 0.6 Release Notes.pdf 2014-05-17 07:21:13 +01:00
bb364f531b Bug #425, http://bugs.skysql.com/show_bug.cgi?id=425
mysqlk_client.c now assumes that mysql packets may arrive in separate pieces.
gw_read_client_event reads client data, and if packet is incomplete it is added to new dcb->dcb_readqueue. When next packet is combined with data in readqueue.

mysql_common.c:gw_MySQL_get_next_packet can now return mysql packet from read buffer although it would span multiple gwbuf buffers.
2014-05-16 17:01:10 +02:00
b341ba317e add debug flags support to .spec 2014-05-13 18:30:12 +03:00
1d08b0100f Initial binlog prototype
Supports pulling binlogs from the master, caching to a local file and relaying to a slave.

Only tested with a single slave and a single MaxScale thread.
2014-05-13 16:06:05 +01:00
c5ec3cbc57 Added new criteria for slave selection: LEAST_ROUTER_CONNECTIONS which causes the servers having least connections from same router to become chosen.
Added function pointer array which is indexed by enumerated selection criterias.
Selection criteria can now be switched by modifying config file and reloading it.
2014-05-12 17:03:22 +03:00
25cb08cc29 Return value of service_alloc wasn't read and caused MaxScale to fail if module load failed. 2014-05-12 16:59:19 +03:00
b7ae1c1784 Added router_option slave_selection_criteria=[LEAST_GLOBAL_CONNECTIONS(default)|LEAST_BEHIND_MASTER] to readwritesplit section.
The option is reloadable in the same way as max_slave_connections parameter. Option value determines which sort function is called before to sort backend server pointers before selecting them and establishing connections to backends.
2014-05-11 23:59:16 +03:00
b8618ee7cf Backend, and server connection counters were updated erroneously. As a consequent, backend selection worked wrong and negative connection count values were possible. 2014-05-11 17:25:56 +03:00
9d1aa06376 Added default value for max_slave_connections=1. It is set when router instance is created. Default value is overwritten if configuration parameter is found.
Added missing makefile to server/modules/routing/test . It is needed for system testing. Prior this fix, 'make testall' failed because the makefile was missing.
2014-05-10 23:27:28 +03:00
ffce479780 backend connection counter was decreased in freeSession even for those backends which weren't connected. This resulted negative counts and affected on selection algorithm. 2014-05-10 22:21:30 +03:00
faa7b8de76 temp file removed
temp file removed
2014-05-09 20:15:47 +02:00
e228baf256 version_string is a new service parameter
version_string is a new service parameter.

Documentation updated and current release is now 0.6.0
2014-05-09 20:13:45 +02:00
e9e2f0365d 0.6.0 Added history folder in Documentation
Added history folder in Documentation, starting from Release 0.6.0

Previous release notes are now archived .
2014-05-09 16:34:09 +02:00
0643e096a6 Documentation update for 0.6.0 release
Documentation update for 0.6.0 release
2014-05-09 16:01:49 +02:00
8be4aba223 Added new state to SESSION: SESSION_STATE_STOPPING, which is set in protocol module before calling closeSession (router). THe new state tells that session is closing and DCBs included may not be polling anymore.
Fixed some crash scenarios.
2014-05-08 23:17:35 +03:00
f34ee4a25b 0.6.0 Release
0.6.0 Release
2014-05-08 17:54:06 +02:00
024c6fdc4c Configuration & Usage Scenarios document updated
Configuration & Usage Scenarios document updated with new
“version_string” service parameter
2014-05-08 17:50:21 +02:00
4913c270d3 Merge branch 'fix-423' into release-0.6 2014-05-08 16:26:51 +02:00
391ba19609 Merge branch 'master' of https://github.com/skysql/MaxScale 2014-05-08 16:37:49 +03:00
835c5b3915 Test that session variable scope doesn't span multiple sessions. 2014-05-08 16:36:17 +03:00
9af5d9fb06 Commit fix to bug #418 http://bugs.skysql.com/show_bug.cgi?id=418 2014-05-08 13:13:42 +03:00
29932f7fc8 MySQL handshake has a configurable version_string
MySQL handshake has no a configurable version_string parameter in
service section.
The default value is the server version of the embedded mysqld library.

Set option example:

version_string=5.5.37-MariaDB-log

Default is similar to:

5.5.35-MariaDB
2014-05-07 18:08:28 +02:00
bc84dd13f8 Removed this because it is deprecated. 2014-05-07 18:22:37 +03:00
182f25fffe Ineffective write in is_commit_stmt 2014-05-07 18:04:55 +03:00
a1361d9c9e Related to MAX-95, added code which makes it possible to change max_slave_connections parameter value during run time of MaxScale. The change will be effective in rwsplit sessions created after the configuration modification and reload. Note that in order to config modification to be effective, the user must connect the debug interface of MaxScale (telnet) and execute 'reload config'.
In practice, 'reload config' reads config file and updates config parameters of rwsplit router service. In addition to that there is a version number indicating what generation of configuration service holds. When router instance is created (when MaxScale is started) service's config version is copied to router intance. Whenever new client connection (rwsplit session) is started, router instance's config version is checked against that of service's. If versions differ, service's config data is copied to router instance. New session will be started with router instance's config values.
2014-05-02 16:35:40 +03:00
bb7d583155 Multiple slave connections for read/write split router.
Merge branch 'MAX-95' into develop
2014-04-29 18:23:08 +03:00