65b25a825a
Addition of adminusers unit test
...
Fix to filters unit test
2014-08-20 14:50:44 +01:00
baa655182c
Merge branch 'master' into develop
2014-08-20 11:07:55 +01:00
24e16e97ed
Updates for unit tests
2014-08-20 11:07:28 +01:00
d6a2ef6996
Misc fixes to doxygen comments
2014-08-19 13:22:40 +01:00
3dc09dfe43
Addition of spinlock unit test
2014-08-18 18:26:14 +01:00
34f6884920
Merge pull request #24 from hholzgra/hartmut-DEL
...
Hartmut del
2014-08-18 09:20:30 +03:00
fb87f68368
consistently use DEL instead of rm in Makefiles
2014-08-17 21:02:24 +00:00
902004c1ee
Fix 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.
2014-08-14 22:33:57 +03:00
77e5525436
mysql_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.
2014-08-14 15:15:22 +03:00
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
fa1f9ec131
Added unsigned char in modutil.c routines
...
Added unsigned char in modutil.c routines
2014-07-16 19:32:20 +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
39679447c9
Bugzilla #455 , MaxScale crashed due missing buffer type information in multi-buffer responses.
2014-07-03 19:20:45 +03: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
eb3a8eaab3
L:.a
2014-07-02 16:25:55 +03:00
f379ee3d7a
add -static for lmysqld
2014-07-02 15:52:16 +03:00
d58682d261
Updated Makefile to resolve issue with adding extra MaxScale in the
...
path for a make install command.
2014-07-01 16:53:10 +01:00
ede4f3778f
Merge pull request #10 from skysql/MAX-94
...
Max 94
2014-07-01 17:16:48 +03:00
8ffca16368
Added consistency check for detect_replication_lag and max_slave_replication_lag and router_options=slave_select_criteria=LEAST_BEHIND_MASTER
...
Fixed a bug in service_add_qualified_param which didn't handle param list correctly.
2014-07-01 16:54:16 +03:00
248b479bb6
Merge pull request #9 from skysql/MAX-90
...
Addition of server weighting to the read/write splitter
2014-07-01 16:04:52 +03:00
eaaac58b44
Addition of server weighting to the read/write splitter
...
Tidy up the output of show server and show servers so that columsn align
2014-07-01 11:06:28 +01:00
37eaf7b455
Replication Lag default is now -2
...
Replication Lag default is now -2
-1 will be used for no information available from slaves
2014-07-01 10:21:24 +02:00
57a977bdc0
Merge branch 'develop' of https://github.com/skysql/MaxScale into develop
2014-06-30 22:38:15 +03:00
b875936a21
MAX-94, Added configuration parameter, max_slave_replication_lag=<longest allowed replication lag in seconds> to router section.
...
Parameter can be changed runtime but it requires reloading of config.
2014-06-30 22:35:27 +03:00
0b89245a4b
Merge branch 'develop' into MAX-167
...
Conflicts:
server/modules/monitor/mysql_mon.c
server/modules/routing/readwritesplit/readwritesplit.c
2014-06-30 14:17:00 +03:00
fcf67716fd
Added mechanism for choosing slave for a query based on the current load in all connected slaves. Counting operations is not correctly done here. Reading values and choosing accordingly is done.
...
Fixed several things in session command reply processing.
2014-06-29 22:21:30 +03:00
ee582bf2b2
write MaxScale PID into pidfile
...
write MaxScale PID into pidfile
2014-06-29 17:53:25 +02:00
a25b757134
Merge branch 'develop' into MAX-90
...
Conflicts:
server/core/server.c
server/include/server.h
server/modules/routing/readconnroute.c
2014-06-27 16:04:39 +01:00
fdcdc064b1
Added server pending states in monitor
...
server pending states are now saved and copied to server status before
monitor thread sleep
2014-06-27 13:38:35 +02:00
eee2ad7143
Merge branch 'develop' into MAX-90
...
Conflicts:
server/core/service.c
2014-06-27 12:15:30 +01:00
25d4f784bc
Implementation of server routing generic functionality and for readconnrouter
2014-06-27 12:07:47 +01:00
237bacd131
Merge branch 'develop' into MAX-59
2014-06-27 11:07:55 +02:00
de5d4fda8b
Merge of new user interface changes
2014-06-27 09:57:39 +01:00
20637ee224
Removed unnecessary SERVER pointer from dcb.c:dcb_call_foreach(), changed declaration and call accordingly.
2014-06-27 10:54:11 +03:00
ace2550d93
Merge branch 'develop' into MAX-111
2014-06-26 16:52:57 +01:00
031294f655
Diagnostic update
2014-06-26 16:52:10 +01:00
f96b762478
User interface improvements
...
Addition of enable/disable heartbeat, enable/disable root, list monitors,
show monitors
Better filter diagnostic output
2014-06-26 16:46:19 +01:00
1a33277f72
Merge from develop
...
Merge from develop
2014-06-26 17:08:21 +02:00
4d2e43a2d9
code cleanup and documentation
...
code cleanup and documentation
2014-06-26 16:56:21 +02:00
1d1da398d4
Merge branch 'develop' into MAX-99
...
Conflicts:
server/modules/routing/readwritesplit/readwritesplit.c
2014-06-25 17:50:29 +03:00
d30ff534b9
In dcb.c:dcb_read if there is nothing anymore to read from socket, it wasn't caught anyway. Added test for that case and immediate exit in that case.
2014-06-25 15:37:44 +03:00
fa08a141e4
Fix to reload dbusers
...
Tidyup show service output
2014-06-25 13:01:32 +01:00
792ae454f4
Add support for #!../maxadmin scripts
...
Add the --help option
Add quoting for executing command with arguments that contain whitespace
2014-06-25 10:00:59 +01:00
e0596b7d72
Merge branch 'develop' into MAX-65
2014-06-25 08:28:17 +01:00
65c42b93cf
If backend fails and sets session state to SESSION_STATE_STOPPING before session is in state SESSION_STATE_ROUTER_READY, sessoin.c:session_alloc overwrites the session state by SESSION_STATE_ROUTER_READY. Protected session state modification and added check before changing the state.
...
cloesSession was called in session.c:session_free if all DCBs had been removed their references to session. closeSession, however, is function which handles closing router. Router is responsible for closing all backend DCBs (=connections). Thus, calling sessionClose after all backend connections had been removed already is unnecessary and causes assertion traps.
Simply removed the call.
2014-06-24 21:59:42 +03:00
c30e270768
Removed dcb->command from DCB structure as it was used for session commands but not anymore.
...
Corrected debug assertion in dcb_final_free because DCB can be freed also when DCB is being created, that is, state is DCB_STATE_ALLOC.
2014-06-24 21:56:15 +03:00