0cb1eb842a
Bug #438 , http://bugs.skysql.com/show_bug.cgi?id=438 try to complete the fix. dcb->authlock was double-freed.
2014-05-28 14:03:59 +03:00
f9db3bc129
Fix to bug #438 http://bugs.skysql.com/show_bug.cgi?id=438
...
Fixed some compiler warnings, added header includes, return values etc.
2014-05-27 10:08:17 +03:00
7319859a48
Log message update
...
Log message update
2014-05-26 17:34:55 +02:00
2c306409b6
newline removed
...
newline removed
2014-05-26 17:30:36 +02:00
c2e85df66f
Added logging to place where authentication with backend fails and the reason is unknown.
2014-05-24 00:04:15 +03:00
4f1233ecc7
Added SESSION_STATE_ROUTER_READY to server/core/session.c:session_state so that state will be printed correctly as well instead of "Invalid state".
2014-05-22 22:27:08 +03: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
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
854d7d7c68
Updated debug command plugin.
2014-05-19 12:31:56 +01:00
5c39682e40
Added message printing telling what file provided the module which was loaded.
2014-05-17 23:10:03 +02: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
0643e096a6
Documentation update for 0.6.0 release
...
Documentation update for 0.6.0 release
2014-05-09 16:01:49 +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
a6ea56a153
Merge branch 'develop' of https://github.com/skysql/MaxScale into develop
2014-04-16 10:26:00 +03:00
81af54730a
Added missing test files for rwsplit router tests.
2014-04-16 10:25:32 +03:00
2fcc371606
Added back --skip-innodb to a call argument for libmysqld
2014-04-15 19:22:46 +03:00
c994c81a0e
Changed the way how autocommit is searched from parse tree. Switched to use typelib instead of explicitly converting and comparing user value. Added more tests for cases where user uses literal values in SET autocommit command.
2014-04-15 14:32:47 +03:00
e01cbd74ed
Bug 409: dcb_final_free now frees dcb->delayq
2014-04-14 10:08:34 +02:00
a253da7b9c
Bug 409: dcb_final_free now frees dcb->delayq
...
Bug 409: dcb_final_free now frees dcb->delayq
2014-04-14 10:06:00 +02:00
7b40c1ee70
Changed how MaxScale unit test works.
...
All tests are run by executing 'make testall' in root directory. As a result all directories which contain tests will be entered and tests executed.
After tests, each directory have a test log including the last run's logs only.
Created a global test log, which is specified in test.inc. Test logs from subdirectories are concatenated to this file.
2014-04-10 19:08:28 +03:00
b9a8f2ce65
Merge branch 'develop' of https://github.com/skysql/MaxScale into develop
2014-04-10 17:11:45 +03:00
bbf1bc2afa
Fix for bug #418
...
Increased skygw_query_type_t to 16 bits, and corrected the way how those bit fields are checked.
Added tests for cases where autocommit is disabled and corrected old tests.
2014-04-10 17:09:42 +03:00
2c17dc3edf
Bug #418 , added functions to query classifier to detect if SET autocommit is called.
...
Note: this compiles but doesn't work yet properly.
2014-04-09 23:43:03 +03:00
c86e25eeb8
Added a test for implicitly started trasnaction.
2014-04-07 17:00:31 +03:00
ce5dc19ecc
Added read/write split router tests to a part of makefile structure.
2014-04-01 14:11:48 -07:00
5e3ec5b3c8
Added "--no-defaults" to arguments that are passed to mysql_library_init. It tells to embedded server not to use any external my.cnf configuration file.
2014-03-29 12:27:02 +02:00
6f46742201
master update from 'release-0.5'
2014-03-28 16:21:10 +01:00
efebd27d31
Galera HA Connection Router
...
Example Galera Connection router for HA environments. Code produced as
part of router writers tutorial.
2014-03-28 14:48:21 +00:00
3ffd4033bc
Added socket and address options in Listener section
...
Added socket and address options in Listener section
2014-03-28 11:34:46 +01:00
7c3a354fd8
Query classifier ignored implicit commits in cases of write commands. Fixed it.
...
Added more tests for transaction support. Mostly different cases where some command triggers implicit commit in the middle of transaction.
2014-03-28 00:16:18 +02:00
40b7ce6d43
Buffer for users' table SHA1 hash is set to zero before using it and strncopy used instead of snprintf
...
Buffer for users' table SHA1 hash is set to zero before using it and
strncopy used instead of snprintf
2014-03-27 17:19:10 +01:00
9b1035751a
Made rwsplit test select_for_var_set.sql generic so that master server's id is filled in test.inc.
2014-03-27 17:17:01 +02:00
e9d1f04bc6
Added test: set var @a via select @@server_id
...
Added test: set var @a via select @@server_id
2014-03-27 11:45:47 +01:00
10fdccdeee
Added two tests for testing readwrite split router's ability to route read to master if in active transaction and to slave when outside transaction.
2014-03-27 10:27:19 +02:00
75549c6a20
Added $(ROOT_PATH)/test.inc where test parameters can be added. For example, MaxScale port numbers, usernames, passwords. The file can be included in every */test/makefile so that all test directories can use same parameters if necessary.
...
Moved checking test results to rwsplit.sh so that tests can use easily different criterias to evaluate test success.
2014-03-27 10:06:31 +02:00
f49df89a0c
Changed how query classifier determines which statements trigger implicit commit.
...
Changed test makefile and rwsplit.sh script and added two example sql scripts.
2014-03-26 19:10:35 +02:00
df02926321
Added structure which can be cloned for multiple test cases.
2014-03-25 23:19:24 +02:00
f320c17834
Added test for readwrite split: SET and TRANSACTION - COMMIT
...
Added test for readwrite split: SET and TRANSACTION - COMMIT
2014-03-24 15:15:21 +01:00
d660d3590d
Cannot compile in readwritesplit.c
2014-03-20 20:30:03 +02:00
288ca68677
Changed variable type which includes information of query type returned by query classifier.
...
As a consequence, if autocommit is enabled, active transaction(s) are implicitly committed and MaxScale detects that implicit commit.
2014-03-20 12:15:57 +02:00
fcf7d37114
Added support for router option 'synced' in read write split router. If router option is specified, backend server must be in 'joined' state to be eligible backend candidate.
2014-03-19 22:29:02 +02:00
5ef657d833
Corrected some error messages. Added checking for protocol state in gw_MySQLWrite_backend. If protocol is in MYSQL_AUTH_FAILED state (=authentication is comleted and failed) write to backend is discarded.
2014-03-19 14:36:47 +02:00