Commit Graph

1267 Commits

Author SHA1 Message Date
08b99c121e 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: 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
2014-08-05 18:14:06 +03:00
76d7f3d836 readwritesplit.c: corrected max_replication_lag with max_slave_replication_lag in hint parameter comparison functions. 2014-08-01 18:30:40 +03:00
dfdd2cfccb Applying changes made in commit fa1f9ec13113e00e65f2425b080cfb0d102b0872 to this branch. 2014-08-01 16:49:13 +03:00
65b121889b config.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.
2014-08-01 16:33:29 +03:00
4f3d746f4e MAX-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.
2014-07-31 23:40:02 +03:00
ef924cdc00 Added check for session state before calling router->sessionClose 2014-07-30 20:54:43 +03:00
ad96ca66a5 Bug 462, http://bugs.skysql.com/show_bug.cgi?id=462, fixed path MAXSCALE_HOME path expression in server/test/makefile 2014-07-29 14:02:57 +03:00
2dea68b9b3 Hint parsing 2014-07-25 16:33:49 +01:00
764ceac105 Merge branch 'httpd' into MAX-157
Conflicts:
	server/core/buffer.c
	server/include/buffer.h
2014-07-16 18:31:12 +01:00
944ee9134c Initial HINT structure added 2014-07-16 18:29:20 +01:00
b335bad380 Added some documentation 2014-07-16 16:11:27 +01:00
23eed37b9f Merge branch 'httpd' of github.com:skysql/MaxScale into httpd 2014-07-15 17:44:01 +01:00
6fd5dff349 Implementation of HTTPD protocol, gwbuf properties and a dmeo web application
interface to test the new httpd.
2014-07-15 17:39:31 +01:00
12ad96cc47 add opensuse support to .spec 2014-07-10 00:45:12 +03:00
4ddc9c81a1 MaxScale 1.0.0 beta 2014-07-04 15:17:38 +02:00
0dcc23a33c MaxScale 1.0.0 beta
MaxScale 1.0.0 beta
2014-07-04 15:17:03 +02:00
f9f5326040 Merge branch 'develop' into release-1.0beta 2014-07-04 14:11:45 +02:00
4c6c6c9111 Documentation for HA with Corosync/Pacemaker
Documentation for HA with Corosync/Pacemaker
2014-07-04 14:10:13 +02:00
8edeb2e2f4 Merge branch 'develop' into release-1.0beta 2014-07-04 14:01:36 +02:00
362ae00c80 Merge branch 'develop' of https://github.com/skysql/MaxScale into develop 2014-07-04 14:29:11 +03:00
78d432661a Delete MaxScale 0.7 Release Notes.pdf
Moved to history
2014-07-04 12:28:04 +01:00
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
1a99b1b287 Merge branch 'develop' of github.com:skysql/MaxScale into develop 2014-07-04 12:26:30 +01:00
3aeb8d96af Update release notes 2014-07-04 12:26:03 +01:00
96472706e0 set version to 1.0-beta 2014-07-04 14:25:41 +03:00
26cb3a2696 Merge branch 'develop' into release-1.0beta 2014-07-04 12:35:21 +02:00
3c74d73b75 change debian/install to install script from etc/ubuntu/init.d/maxscale 2014-07-04 12:51:59 +03:00
25e108c99a maxscale init script for Ubuntu
maxscale init script for Ubuntu
2014-07-04 11:49:00 +02:00
3052f6c308 Directory deleted
Directory deleted
2014-07-04 11:47:41 +02:00
90c571f8f9 Ubuntu maxscale init script
Ubuntu maxscale init script
2014-07-04 11:46:13 +02:00
b40a1a9ed8 Merge branch 'develop' of https://github.com/skysql/MaxScale into develop 2014-07-04 11:30:14 +03:00
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
4af2e58c86 Update plugin status to BETA 2014-07-04 09:23:40 +01:00
5251244ddd Fix missing argument to skygw_query_classifier_get_type in test code 2014-07-04 08:44:42 +01:00
cf13d89bff Version 1.0
Version 1.0
2014-07-04 09:24:00 +02:00
e3dc071549 Merge branch 'develop' of github.com:skysql/MaxScale into develop 2014-07-03 19:48:24 +03:00
ac914120b8 fix server/core/Makefile to make build with static lib working in Ubuntu 2014-07-03 19:35:16 +03:00
0036d6d8af Merge branch 'develop' of https://github.com/skysql/MaxScale into develop 2014-07-03 19:27:59 +03:00
39679447c9 Bugzilla #455, MaxScale crashed due missing buffer type information in multi-buffer responses. 2014-07-03 19:20:45 +03:00
a100b46680 Comments updated in get_root_master()
Comments updated in get_root_master()
2014-07-03 17:04:58 +02:00
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
0dfdc27ea5 revert -l:libmysqld.a to -lmysqld 2014-07-03 11:38:59 +03:00
6f6a5b67c9 Merge branch 'develop' of https://github.com/skysql/MaxScale into develop 2014-07-03 00:46:01 +03:00
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
7f0ab047d5 fix path for ldconfig 2014-07-02 22:42:04 +03:00
e5ce7027ed Merge branch 'static_lib' into develop 2014-07-02 20:54:00 +03:00
c3c18fb044 Fix for missing maxscaled sources in Makefile. Resolves issue with
make clean not removing maxscaled.o
2014-07-02 17:32:47 +01:00
eb3a8eaab3 L:.a 2014-07-02 16:25:55 +03:00
511bb84130 lstc should be dynamic 2014-07-02 16:02:21 +03:00
f379ee3d7a add -static for lmysqld 2014-07-02 15:52:16 +03:00