VilhoRaatikka
7a1b35dc88
Fix to bug #590 , http://bugs.mariadb.com/show_bug.cgi?id=590
...
readwritesplit.c:execute_sescmd_in_backend didn't set GWBUF_TYPE_SESCMD type to GWBUF the command is in. Thus reply wasn't processed properly. Instead all replies were sent to client.
2014-10-23 18:56:27 +03:00
Mark Riddoch
9e0a8a0eee
Addition of show eventstats
2014-10-23 13:38:46 +01:00
Markus Makela
b5388956d8
Changed the order of linking in test_mysql_users and removed references to non-existing directories in test.inc
2014-10-23 15:24:59 +03:00
Mark Riddoch
70672e43a1
Addition of backoff process for master reconnect
...
Housekeeper task display
2014-10-23 10:46:55 +01:00
VilhoRaatikka
287bc90465
Fix to bug #585 , http://bugs.mariadb.com/show_bug.cgi?id=585
...
buffer.c:gwbuf_make_contiguous: when new buffer is created, copy original buffer's type to new buffer
modutil.c:modutil_replace_SQL: when new bugger is added to GWBUF, copy original buffer's type to new buffer
In all filters, merge all buffers of GWBUF to one before calling modutil:extract_SQL
2014-10-21 21:13:21 +03:00
Mark Riddoch
932fc5dc2c
Resolve issue with icorrectly markign slave connection as errored
2014-10-21 14:31:05 +01:00
VilhoRaatikka
d065be4824
readwritesplit.c:get_dcb assumed thet get_root_master_bref always returns non-null pointer. Changed it so that get_dcb_returns if it doesn't get master bref pointer.
2014-10-20 22:41:10 +03:00
VilhoRaatikka
4daf255d60
Fixed use of uninitialized variable.
2014-10-20 13:20:53 +03:00
VilhoRaatikka
ebd92c8741
readwritesplit.c:routeQuery if target is master but it is found out when get_dcb returns that master DCB has changed, routeQuery fails and logs to trace that master changed.
2014-10-20 10:40:32 +03:00
Mark Riddoch
554a054e18
Improve logging support
2014-10-17 12:29:29 +01:00
Mark Riddoch
e729a17fd4
Addition of new tuning parameters for epoll spins and wait time
2014-10-17 12:28:27 +01:00
Mark Riddoch
2edab598b2
Remove memlog diagnostics used to find issues with transistion between
...
catchup and follow mode.
2014-10-17 11:14:10 +01:00
Mark Riddoch
9b3dfc86fe
Binlog router performance improvements
2014-10-17 08:38:58 +01:00
Mark Riddoch
f459bdfe04
Add new command to view the event queue
...
Fixes to fake poll events to improve fairness
2014-10-17 08:36:32 +01:00
VilhoRaatikka
6041a7e12f
Added server state information to trace log printing
2014-10-17 09:44:52 +03:00
Mark Riddoch
a63e251d09
Bug 431 - replace == with =
2014-10-15 13:03:12 +01:00
VilhoRaatikka
9c49cd87b1
Fix to #571 , http://bugs.mariadb.com/show_bug.cgi?id=571
...
In rwsplit router, merge multiple (query) buffers to one if necessary.
2014-10-15 11:25:17 +03:00
Mark Riddoch
fe0e7c74d0
Resolve transition from catchup to follow mode.
2014-10-14 11:43:08 +01:00
Markus Makela
ebb3b52fdb
Included the my_config.h header before any system headers if mysql headers were used.
2014-10-10 12:30:21 +03:00
Markus Makela
3cd8e29c4c
Changed the way some CMake functions are used to support older versions of CMake.
2014-10-07 14:09:22 +03:00
VilhoRaatikka
aca8596efa
mysql_client.c:gw_client_close didn't close client session in cases where session->state == SESSION_STATE_STOPPING. That is a bug and lead to situation where session wasn't closed at all.
...
Also changed 'authorization failed' to 'access denied'
mysql_common.c: fixed memory leak in gw_receive_backend_auth, and replaced error code '2800' with '28000'.
readconnroute.c:handleError didn't set *succp pointer so uninitialized value was used in caller's context.
makefile.inc: added -lm to linker flags
mysql_backend.c: added a few comments
2014-10-06 11:46:12 +03:00
Mark Riddoch
fd1154b944
Change of distribution mechanism to use fake events exclusively and avoid
...
complex locking mechanism and blocking the master DCB eent processign thread
Addition of shared BLFILE mechanism to reduce open/close overhead
2014-10-03 14:33:28 +01:00
Mark Riddoch
501d0bcae6
Reconnect to master on error
...
Refine locking in blr_slave_catchup and add tracing
2014-10-02 17:19:43 +01:00
Mark Riddoch
9186d3fa90
Fixes for blr_salve performanc issues, linking of embedded library,
...
housekeeper heartbeat addition and unloading of modules to allow
profiling of modules using LD_PROFILE environment variable and sprof
2014-10-01 18:30:13 +01:00
Markus Makela
c4ca1ddb13
Updated non-source files with new company name.
2014-10-01 15:21:47 +03:00
Markus Makela
b0683d9b4d
Updated the licensing year from 2013 to 2013-2014
2014-10-01 14:37:12 +03:00
Markus Makela
dfeca42788
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
2014-10-01 13:50:54 +03:00
Markus Makela
0acb8fe05d
Renaming missed SkySQL references.
2014-10-01 13:48:00 +03:00
VilhoRaatikka
bff2d794e0
Removed unnecessary linking commands to libmysqld.a
2014-10-01 13:29:26 +03:00
Markus Makela
52c0d0c768
Merge remote-tracking branch 'origin/develop' into header_rename
2014-10-01 05:24:02 +03:00
VilhoRaatikka
ca7ae0bb64
Fix to bug #557 , http://bugs.mariadb.com/show_bug.cgi?id=557
...
query_classifier.cc: added function for printing combined query type from a bit field.
query_classifier.h: identify query types SHOW DATABASE, and SHOW TABLES to make log entries more understandable.
mysql_common.c: moved some trace log commands to debug log.
readwritesplit.c: moved some trace logs to debug log, added trace log commands to gather routing, query type and session information to one log entry.
skygw_debug.h: added string macros for several query and hint types.
2014-09-30 16:31:30 +03:00
Mark Riddoch
bce0716861
Merge branch 'blr' of https://github.com/skysql/MaxScale into blr
2014-09-30 13:27:03 +01:00
Mark Riddoch
0ef87e3cc1
Updates to slave catchup mode to use fake events
...
Addition of fake EPOLLOUT event mechanism
New memlog feature for debugging purposes
2014-09-30 13:25:45 +01:00
Markus Makela
f4e591e382
Changed 'SkySQL Gateway' to 'MariaDB Corporation MaxScale'
2014-09-30 13:15:03 +03:00
Markus Makela
c344231f80
Renamed all occurences of SkySQL to MariaDB Corporation
2014-09-30 13:02:10 +03:00
Markus Makela
dd5c3c1d0f
Removal of binlog router from Makefile
2014-09-26 18:13:30 +03:00
VilhoRaatikka
2801aa851e
Merge branch 'blr' of https://github.com/skysql/MaxScale into blr
2014-09-26 15:44:18 +03:00
VilhoRaatikka
5ec1a83f3b
Fix to #478 , http://bugs.skysql.com/show_bug.cgi?id=478
...
Execution of session commands failed because session commands and normal sql statements were executed in a wrong order if backend was executing previous session command while new sql stmt was routed to that backend. There was a window where ordering went wrong.
It is possible that one normal sql stmt arrives while previous sescmds are still being executed.
Introduced a new member in backend_ref_t structure, bref_pending_cmd where new sql stmt pointer is stored in that case. When sescmds are executed completely, that command is automatically executed next.
2014-09-26 15:40:32 +03:00
Mark Riddoch
3430fc99d2
Shutdown fix in housekeeper
...
In memory logging in blr_master
2014-09-26 12:36:59 +01:00
Mark Riddoch
06596a0bc3
Add binlog router back into Makefiles
2014-09-25 17:35:27 +01:00
Markus Makela
5bef5d8f53
Removed binlogrouter from the build process.
2014-09-25 21:25:46 +03:00
Mark Riddoch
63252e94f2
Merge branch 'release-1.0beta-refresh' into blr
...
Fix conflict and remove some redundant code
Conflicts:
server/core/poll.c
2014-09-24 16:49:12 +01:00
Markus Makela
3f0de666ac
Changed the order of linking to resolve some debug build bugs and added the missing parent directory of the MYSQL_DIR into the included directories.
2014-09-20 19:44:30 +03:00
Mark Riddoch
d561ccb089
Merge branch 'release-1.0beta-refresh' into blr
2014-09-19 13:42:37 +01:00
Mark Riddoch
5721df5176
Add initial file number
...
Fix for short binlog file names in rotate
Socket buffering changes
2014-09-19 13:40:38 +01:00
Markus Makela
c868fedb87
Fixed missing ${EMBEDDED_LIB} variables and changed to the proper template config file.
2014-09-19 11:41:44 +03:00
Markus Makela
26e2695491
Merge branch 'release-1.0beta-refresh' into cmake_build
2014-09-18 11:13:24 +03:00
VilhoRaatikka
0f3db1c091
First changes for fixing #548 , http://bugs.skysql.com/show_bug.cgi?id=548
...
dcb.c:dcb_process_zombies:added new parameter which tells what DCB the thread will use after calling dcb_process_zombies. Thus, processing that DCB is skipped.
readwritesplit.c:routeQuery:removed double free call for query buffer.
2014-09-17 18:02:44 +03:00
Markus Makela
3776fdb015
added a 'testall' target which builds and runs the tests
2014-09-17 10:39:47 +03:00
Markus Makela
8b1afbfe26
fixed tests not working with the normal 'make testall'
2014-09-16 20:02:28 +03:00