1271 Commits

Author SHA1 Message Date
Vilho Raatikka
35f64ff33a Merge pull request #17 from skysql/session_variable_test
rwsplit router tests for session variables
2014-08-14 14:38:26 +03:00
Markus Makela
01eb9822e0 rwsplit router tests for session variables 2014-08-14 14:34:22 +03:00
VilhoRaatikka
d3a79ce7c4 Partial 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.
2014-08-14 13:05:05 +03:00
VilhoRaatikka
97ab902ede Fix to http://bugs.skysql.com/show_bug.cgi?id=469, connection counter leaks in master.
Removed redundant counter increments.
2014-08-05 16:31:39 +03:00
VilhoRaatikka
7558abb6fa Bug #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.
2014-08-05 10:42:13 +03:00
MassimilianoPinto
932cec8523 branch release-1.0beta update 2014-08-04 17:14:19 +02:00
MassimilianoPinto
6ef5cbc609 30s is now the default value for replication lag
30s is now the default value for replication lag
2014-08-04 17:10:25 +02:00
VilhoRaatikka
b3656eba07 Added check for session state before calling route->closeSession 2014-07-30 20:43:43 +03:00
VilhoRaatikka
7a039e1a0b Added check for session state before calling router->closeSession 2014-07-30 20:40:08 +03:00
VilhoRaatikka
4e720c74e8 Bug 462, http://bugs.skysql.com/show_bug.cgi?id=462, fixed path MAXSCALE_HOME path expression in server/test/makefile 2014-07-29 22:16:03 +03:00
MassimilianoPinto
b68dc5ff2a develop update 2014-07-29 16:47:59 +02:00
MassimilianoPinto
3f4e67ccca Changed value for SERVER_SLAVE_OF_EXTERNAL_MASTER
Changed SERVER_SLAVE_OF_EXTERNAL_MASTER value to 0x0080 (128)
2014-07-29 16:46:39 +02:00
VilhoRaatikka
d83a4673d7 Bug 462, http://bugs.skysql.com/show_bug.cgi?id=462, testall target fails in server/test to invalid MAXSCALE_HOME path specification.
Fixed path specification in server/test/makefile.

Added comments to mysql_backend.c
2014-07-29 12:11:00 +03:00
MassimilianoPinto
bb9893b488 release-1.0beta update 2014-07-29 10:26:11 +02:00
MassimilianoPinto
fa1f9ec131 Added unsigned char in modutil.c routines
Added unsigned char in modutil.c routines
2014-07-16 19:32:20 +02:00
Timofey Turenko
704094b9dc fix endif in .spec 2014-07-12 00:27:08 +03:00
Timofey Turenko
060a3cea4c add CentOS 7 support to .spec 2014-07-12 00:13:21 +03:00
Timofey Turenko
12ad96cc47 add opensuse support to .spec 2014-07-10 00:45:12 +03:00
MassimilianoPinto
4ddc9c81a1 MaxScale 1.0.0 beta 2014-07-04 15:17:38 +02:00
MassimilianoPinto
0dcc23a33c MaxScale 1.0.0 beta
MaxScale 1.0.0 beta
2014-07-04 15:17:03 +02:00
MassimilianoPinto
f9f5326040 Merge branch 'develop' into release-1.0beta 2014-07-04 14:11:45 +02:00
MassimilianoPinto
4c6c6c9111 Documentation for HA with Corosync/Pacemaker
Documentation for HA with Corosync/Pacemaker
2014-07-04 14:10:13 +02:00
MassimilianoPinto
8edeb2e2f4 Merge branch 'develop' into release-1.0beta 2014-07-04 14:01:36 +02:00
VilhoRaatikka
362ae00c80 Merge branch 'develop' of https://github.com/skysql/MaxScale into develop 2014-07-04 14:29:11 +03:00
Mark Riddoch
78d432661a Delete MaxScale 0.7 Release Notes.pdf
Moved to history
2014-07-04 12:28:04 +01:00
VilhoRaatikka
5357f6e2f2 Fixes symtoms described in http://bugs.skysql.com/show_bug.cgi?id=454
Added DCB state check to backend error evend handler. If state isn't DCB_STATE_POLLING anymore, socket is closed with purpose or error occurred but it has already been handled.
Client doesn't hang anymore at least with the documented method.
2014-07-04 14:26:55 +03:00
Mark Riddoch
1a99b1b287 Merge branch 'develop' of github.com:skysql/MaxScale into develop 2014-07-04 12:26:30 +01:00
Mark Riddoch
3aeb8d96af Update release notes 2014-07-04 12:26:03 +01:00
Timofey Turenko
96472706e0 set version to 1.0-beta 2014-07-04 14:25:41 +03:00
MassimilianoPinto
26cb3a2696 Merge branch 'develop' into release-1.0beta 2014-07-04 12:35:21 +02:00
Timofey Turenko
3c74d73b75 change debian/install to install script from etc/ubuntu/init.d/maxscale 2014-07-04 12:51:59 +03:00
MassimilianoPinto
25e108c99a maxscale init script for Ubuntu
maxscale init script for Ubuntu
2014-07-04 11:49:00 +02:00
MassimilianoPinto
3052f6c308 Directory deleted
Directory deleted
2014-07-04 11:47:41 +02:00
MassimilianoPinto
90c571f8f9 Ubuntu maxscale init script
Ubuntu maxscale init script
2014-07-04 11:46:13 +02:00
VilhoRaatikka
b40a1a9ed8 Merge branch 'develop' of https://github.com/skysql/MaxScale into develop 2014-07-04 11:30:14 +03:00
VilhoRaatikka
307bb6ad98 Disabled query classifier tests from testset until tests are fixed. Current version doesn't even compile. 2014-07-04 11:29:26 +03:00
Mark Riddoch
4af2e58c86 Update plugin status to BETA 2014-07-04 09:23:40 +01:00
Mark Riddoch
5251244ddd Fix missing argument to skygw_query_classifier_get_type in test code 2014-07-04 08:44:42 +01:00
MassimilianoPinto
cf13d89bff Version 1.0
Version 1.0
2014-07-04 09:24:00 +02:00
Timofey Turenko
e3dc071549 Merge branch 'develop' of github.com:skysql/MaxScale into develop 2014-07-03 19:48:24 +03:00
Timofey Turenko
ac914120b8 fix server/core/Makefile to make build with static lib working in Ubuntu 2014-07-03 19:35:16 +03:00
VilhoRaatikka
0036d6d8af Merge branch 'develop' of https://github.com/skysql/MaxScale into develop 2014-07-03 19:27:59 +03:00
VilhoRaatikka
39679447c9 Bugzilla #455, MaxScale crashed due missing buffer type information in multi-buffer responses. 2014-07-03 19:20:45 +03:00
MassimilianoPinto
a100b46680 Comments updated in get_root_master()
Comments updated in get_root_master()
2014-07-03 17:04:58 +02:00
VilhoRaatikka
a68d83ff7f Moved error messages about broken pipe to DEBUG build since in cases we've seen it is due to socket closing in same host. Other case is that MaxScale attempts to write COM_QUIT (ending message) to socket that other thread already closed.
Added counter clean-up code to readwritesplit closeSession. If operation counters have leaked, that is, due to some error in query routing some counter have been left positive, it is zeroed at session ending. This ensures that there is no garbage in global counter even if individual session wouldn't clean up its counters.
2014-07-03 12:12:21 +03:00
Timofey Turenko
0dfdc27ea5 revert -l:libmysqld.a to -lmysqld 2014-07-03 11:38:59 +03:00
VilhoRaatikka
6f6a5b67c9 Merge branch 'develop' of https://github.com/skysql/MaxScale into develop 2014-07-03 00:46:01 +03:00
VilhoRaatikka
e944ae2e70 http://bugs.skysql.com/show_bug.cgi?id=453
Fixed bug in session command resul handling. In case where backend sent error message the session command cursor wasn't updated properly.

Added check to bref_clear_state, if bref's waiter counter would go negative, decrement to global operation counter is skipped.
2014-07-03 00:43:30 +03:00
Timofey Turenko
7f0ab047d5 fix path for ldconfig 2014-07-02 22:42:04 +03:00
Timofey Turenko
e5ce7027ed Merge branch 'static_lib' into develop 2014-07-02 20:54:00 +03:00