902004c1eeFix to bug #463, http://bugs.skysql.com/show_bug.cgi?id=463 mysql_common.c:gw_MySQL_get_next_packet didn't handle case where an insert command followed by alter table in the same read buffer. It shouldn't been possible without multi-statement being set.
VilhoRaatikka
2014-08-14 22:33:57 +03:00
2393ac57e9mysql_common.c:protocol_add_srv_command didn't check that protocol status was MYSQL_PROTOCOL_ACTIVE and wrote to freed memory.
VilhoRaatikka
2014-08-14 17:23:46 +03:00
77e5525436mysql_client.c:gw_error_client_event & gw_client_hangup_event: added session state check, if session is already closing, don't start redundant call to dcb_close. mysql_common.c:mysql_protocol_done: added protocol state check. Used not to check it which caused double free of allocated memory.
VilhoRaatikka
2014-08-14 15:15:22 +03:00
35f64ff33aMerge pull request #17 from skysql/session_variable_test
Vilho Raatikka
2014-08-14 14:38:26 +03:00
01eb9822e0rwsplit router tests for session variables
Markus Makela
2014-08-14 14:34:22 +03:00
d3a79ce7c4Partial fix to #463, http://bugs.skysql.com/show_bug.cgi?id=463 log_manager.cc: fixed block buffer overflow. Queries are logged to trace log and long queries exceed the bufsize in length. Those were written beyond allocated memory areas. mysql_client_server_protocol.h: added mysql_protocol_state_t to indicate whether MySQL protocol object is allocated, usable or freed. Freed means that memory allocations made by the protocol are freed. That is, command history etc. mysql_backend.c: gw_backend_hangup and gw_error_backend_event used to call error handling function although session was already closing. Added check for session state. mysql_client.c: route_by_statement lost some packets in case where query was sent in multiple packets. mysql_common.c: gw_MySQL_get_next_packet failed in packet handling with route_by_statement. When multi-packet query was merged into one, packet type wasn't copied. protocol_archive_srv_command and mysql_protocol_done didn't have proper locking in place which lead to occasional crashes.
VilhoRaatikka
2014-08-14 13:05:05 +03:00
ccdf326d07Merge pull request #16 from skysql/testing_makefile_fix
Vilho Raatikka
2014-08-13 10:46:40 +03:00
7401c8b1d2Merge remote-tracking branch 'origin/Z2' into filter_harness
Markus Makela
2014-08-12 14:44:40 +03:00
c02bb41a9dAdded logging for case where route hint is to slave.
VilhoRaatikka
2014-08-12 10:27:15 +03:00
3a639403bfadded fixes to core tests failing even though they passed, hint syntax test only checking for a partial logfile and readwritesplit tests being run twice.
Markus Makela
2014-08-11 14:27:33 +03:00
e057268b5bfilter testing harness
Markus Makela
2014-08-11 12:13:18 +03:00
4228ecac53Merge pull request #15 from skysql/hint_tests
Vilho Raatikka
2014-08-08 13:52:33 +03:00
90055fd1bdtests for hints and changes in makefiles and configuration files to enable testing them through 'make testall'
Markus Makela
2014-08-08 13:11:59 +03:00
f23a9e2b72tests for hints and changes in makefiles and configuration files to enable testing them through 'make testall'
Markus Makela
2014-08-08 13:11:59 +03:00
b72e80b464Fix for Bug #466, http://bugs.skysql.com/show_bug.cgi?id=466 hintparser.c:hint_parser:when string token is found, create a copy of the token value instead of copying the its address because token will be freed before the value is used. hint_next_token:didn't recognize '=' as TOK_EQUAL, fixed that. Read the code. hint.c:hint_create_parameter: copy the pointer to parameter name instead of creating copy of it - pname is already copied from token before the call readwritesplit.c:routeQuery:Hint name was copied when hint value was supposed to be copied, thus resulting invalid value for hinted parameter. Also fixed server type in trace log command. skygw_debug.h:Added string for Relay server to macro STRSRVSTATUS.
VilhoRaatikka
2014-08-06 16:39:22 +03:00
08b99c121eBug #468, http://bugs.skysql.com/show_bug.cgi?id=468, Query classifier accessed freed thread context. If parsing fails thd doesn't need to be freed because it holds correct information about command type. session.c:session_setup_filters : fixed memory leak hintparser.c: added token_free for HINT_TOKENs and fixed a few memory leaks. mysql_client_server_protocol.h: added mysql_protocol_done which frees memory blocks pointed to by protocol members. Those can't be freed in dcb.c because dcb.c doesn't know about protocol's members. mysql_backend.c:gw_backend_close: fixed memory leak mysql_client.c: gw_client_close: fixed memory leak mysql_common.c: added implementation of mysql_protocol_done :protocol_archive_srv_command: tried to fix memory leak. Some memory is still leaking according to valgrind. Removed use of uninitialized local variable len. readwritesplit.c: Fix to bug #469, http://bugs.skysql.com/show_bug.cgi?id=469, rwsplit counts every connection twice in master - counnection counts leak execute_sescmd_in_backend: fixed a memory leak - visible only in DEBUG=Y build. readwritesplit/test/makefile: added target for hints tests
VilhoRaatikka
2014-08-05 18:14:06 +03:00
f2dc2e8671Added log status change for ndbcluster monitor
MassimilianoPinto
2014-08-05 15:26:31 +02:00
4ef1df4e9dBug #468, http://bugs.skysql.com/show_bug.cgi?id=468, Query classifier accessed freed thread context. If parsing fails thd doesn't need to be freed because it holds correct information about command type.
VilhoRaatikka
2014-08-05 13:44:04 +03:00
7558abb6faBug #468, http://bugs.skysql.com/show_bug.cgi?id=468, Query classifier accessed freed thread context. If parsing fails thd doesn't need to be freed because it holds correct information about command type.
VilhoRaatikka
2014-08-05 10:42:13 +03:00
6b3c7041e3Bug #468, http://bugs.skysql.com/show_bug.cgi?id=468, Query classifier accessed freed thread context. If parsing fails thd doesn't need to be freed because it holds correct information about command type. session.c:session_setup_filters : fixed memory leak hintparser.c: added token_free for HINT_TOKENs and fixed a few memory leaks. mysql_client_server_protocol.h: added mysql_protocol_done which frees memory blocks pointed to by protocol members. Those can't be freed in dcb.c because dcb.c doesn't know about protocol's members. mysql_backend.c:gw_backend_close: fixed memory leak mysql_client.c: gw_client_close: fixed memory leak mysql_common.c: added implementation of mysql_protocol_done :protocol_archive_srv_command: tried to fix memory leak. Some memory is still leaking according to valgrind. Removed use of uninitialized local variable len. readwritesplit.c:execute_sescmd_in_backend: fixed a memory leak - visible only in DEBUG=Y build.
VilhoRaatikka
2014-08-05 09:31:10 +03:00
6ef5cbc60930s is now the default value for replication lag
MassimilianoPinto
2014-08-04 17:10:25 +02:00
76d7f3d836readwritesplit.c: corrected max_replication_lag with max_slave_replication_lag in hint parameter comparison functions.
VilhoRaatikka
2014-08-01 18:30:40 +03:00
dfdd2cfccbApplying changes made in commit fa1f9ec13113e00e65f2425b080cfb0d102b0872 to this branch.
VilhoRaatikka
2014-08-01 16:49:13 +03:00
65b121889bconfig.h: Added enumerated types MAX_RLAG_AVAILABLE and MAX_RLAG_UNDEFINED to be used instead of magic numbers as max_slave_replication_lag values. readwritesplit.h: Added TARGET_RLAG_MAX to the list of hint targets. It is used in case of hint max_slave_replication_lag=<value> readwritesplit.c: get_dcb is called when readwritesplit router chooses target backend for a query. Backend is selected from those the router has connection to. get_dcb now takes additional parameters, name and max_rlag. Name is used if there is a hint route to server <server name>. max_rlag is used for hint max_slave_replication_lag=<value> or if it doesn't exist, then for configure parameter max_slave_replication_lag=<configured value> or if both are absent, ignored.
VilhoRaatikka
2014-08-01 16:33:29 +03:00
4882737956MySQL Cluster setup and MaxScale configuration
MassimilianoPinto
2014-08-01 12:17:44 +02:00
3319d23947MySQL Cluster setup and MaxScale configuration
MassimilianoPinto
2014-08-01 12:17:44 +02:00
4f3d746f4eMAX-157. Added support for hints in rwsplit router. buffer.c: added memory release for hint of a GWBUF hint.c: added bool hint_exists() hint.h: added placeholder for hint type HINT_ROUTE_TO_ALL which doesn't have implementation yet. filter/Makefile: fixed dependency issue hintparser.c: added const char* token_get_keyword(), hint_parser:added NULL check, hint_next_token: fixed off-by-one bug readwritesplit.h: added bitfield for hints' use, which includes route targets and flag for case where user hinted to route to named backend server. readwritesplit.c: added function route_target_t get_route_target() for resolving route target based on 1) query type (from query_classifier) 2) transaction state (active/not) and 3) hints. Modified get_dcb, which is called in routeQuery to provide pointer to correct backend DCB. Now get_dcb also takes server unique name as a parameter if such a hint was found. for hints' use, which includes enter the commit message for your changes.
VilhoRaatikka
2014-07-31 23:40:02 +03:00
354926116eNew version with MySQL Cluster support
MassimilianoPinto
2014-07-31 16:40:27 +02:00
fbd0552425New version with MySQL Cluster support
MassimilianoPinto
2014-07-31 16:40:27 +02:00
d5d44ba141New version with MySQL Cluster support
MassimilianoPinto
2014-07-31 15:41:32 +02:00
aa8b8a41b0New version with MySQL Cluster support
MassimilianoPinto
2014-07-31 15:41:32 +02:00
ef924cdc00Added check for session state before calling router->sessionClose
VilhoRaatikka
2014-07-30 20:54:43 +03:00
b3656eba07Added check for session state before calling route->closeSession
VilhoRaatikka
2014-07-30 20:43:43 +03:00
7a039e1a0bAdded check for session state before calling router->closeSession
VilhoRaatikka
2014-07-30 20:40:08 +03:00
744892e47cSupport for MySQL Cluster
MassimilianoPinto
2014-07-30 09:41:03 +02:00
40546fc689Added NDB status
MassimilianoPinto
2014-07-30 09:31:37 +02:00
fa1f9ec131Added unsigned char in modutil.c routines
MassimilianoPinto
2014-07-16 19:32:20 +02:00
764ceac105Merge branch 'httpd' into MAX-157
Mark Riddoch
2014-07-16 18:31:12 +01:00
944ee9134cInitial HINT structure added
Mark Riddoch
2014-07-16 18:29:20 +01:00
b335bad380Added some documentation
Mark Riddoch
2014-07-16 16:11:27 +01:00
87e66a0ea8Revert "Implementation of HTTPD protocol, gwbuf properties and a dmeo web application"
Mark Riddoch
2014-07-15 17:53:39 +01:00
23eed37b9fMerge branch 'httpd' of github.com:skysql/MaxScale into httpd
Mark Riddoch
2014-07-15 17:44:01 +01:00
6fd5dff349Implementation of HTTPD protocol, gwbuf properties and a dmeo web application interface to test the new httpd.
Mark Riddoch
2014-07-15 17:39:31 +01:00
704094b9dcfix endif in .spec
Timofey Turenko
2014-07-12 00:27:08 +03:00
060a3cea4cadd CentOS 7 support to .spec
Timofey Turenko
2014-07-12 00:13:21 +03:00
12ad96cc47add opensuse support to .spec
Timofey Turenko
2014-07-10 00:45:12 +03:00