4dd6f1b9c0
Added comment to assertion regarding to bref->bref_pending_cmd which is a one-slot buffer for database query. If sessoin command cursor is active when query is routed, instead of routing the query to backend it is stored to bref_pending_cmd to wait until previous (session) command is completed. The assertion traps if there is a command already in the bref_pending_cmd.
...
Situation is wrong because client shouldn't send new query before the previous (the pending one) is executed in backend and the reply is sent to the client.
2014-12-15 11:35:07 +02:00
04a92e40df
Fixes to Coverity defects 84879 84878 72752 72742
2014-12-15 06:28:47 +02:00
a4968f2521
Complete fix candidate for #645 , http://bugs.skysql.com/show_bug.cgi?id=645 and #648 , http://bugs.skysql.com/show_bug.cgi?id=648
...
tee.c:closeSession removed unnecessary dcb_free, router/service closes all backend DCBs and the client DCB, and client DCB is the one that was tried to free in closeSession.
readwritesplit.c:routeQuery now handles untyped and typed GWBUFs. Untyped means that read buffer may consist of incomplete and multiple MySQL packets. Typed buffer always consists of a single MySQL packet (which can be split to many buffers inside GWBUF).
Fixed Coverity cases #84840 and #84841
2014-12-14 11:26:15 +02:00
c31f971999
Fix candidate for #645 , http://bugs.skysql.com/show_bug.cgi?id=645 and #648 , http://bugs.skysql.com/show_bug.cgi?id=648
...
If readwritesplit.c:routeQuery gets a GWBUF whose type is UNDEFINED, then each MySQL packet is extracted from input buffer and passed to new function, route_single_stmt. Each extracted packet is stored in separate GWBUF and added types GWBUF_TYPE_MYSQL and GWBUG_TYPE_SINGLE_STMT which makes it possible to execute session commands and process reply packets properly.
Code nedes still cleaning but this is for testing atm.
2014-12-13 01:55:40 +02:00
339f604d73
Merge branch 'release-1.0GA' of https://github.com/mariadb-corporation/MaxScale into release-1.0GA
2014-12-12 21:18:13 +02:00
e55c70b329
Session status wasn't updated in tee filter's closeSession
2014-12-12 14:36:05 +02:00
1fc063b437
Added pepared statements and field lsit support to the command types
...
to duplciate
2014-12-12 10:02:24 +00:00
680f7ef2c1
Add fix for duplicating COM_QUIT, COM_INIT_DB and COM_CHANGE_USER packets
2014-12-12 09:45:52 +00:00
573cf6040c
Check for the duplciate service being the same as the service that is using the
...
tee filter. I.e. trap simple recursive definitions.
2014-12-11 13:45:21 +00:00
df1ff25be4
Changes for file system full detection
2014-12-10 09:07:14 +00:00
f2cec6e51e
Merge branch 'release-1.0GA' into firewall
...
Conflicts:
query_classifier/query_classifier.cc
2014-12-09 14:23:07 +02:00
0fb1918887
Improved error handlign for binlog directory and files
2014-12-09 09:55:05 +00:00
19cf44bd59
Coverity fixes: 72650, 72665
...
Coverity fixes: 72650, 72665
2014-12-09 08:58:52 +01:00
6a54d888de
Merge branch 'release-1.0GA' of https://github.com/mariadb-corporation/MaxScale into release-1.0GA
2014-12-08 16:04:27 +02:00
5264a1abc9
Added function documentation, moved one non-error log entry to message log, cleaned up a bit.
2014-12-08 16:02:16 +02:00
8fed527ac9
Merge branch 'release-1.0GA' into blr
2014-12-08 09:21:38 +00:00
ce056dccd8
Update modue status of all GA modules
2014-12-08 09:19:35 +00:00
b1eaaea961
Merge branch 'release-1.0GA' of https://github.com/mariadb-corporation/MaxScale into release-1.0GA
2014-12-05 23:57:02 +02:00
01b1b0a304
Fixes to Coverity issues 84388, 84386, 84385
...
mysql_mon.c: Added back server state logging to Debug build.
query_classifier.cc: removed some extra debug code, cleaned up a bit function documentation.
mysql_client_server_protocol.h, mysql_backend.c, mysql_common.c: changed some variables to signed ones to enable checking of calculations in the code.
skygw_utils.cc: removed erroneous debug assertion.
2014-12-05 23:39:14 +02:00
cce35d9035
Add event name in show service
2014-12-05 13:49:41 +00:00
a0cebae0ec
Make building the binlog router conditional
2014-12-05 11:43:06 +00:00
e102d56e69
Merge branch 'blr' into release-1.0GA
...
Conflicts:
server/modules/protocol/mysql_backend.c
server/modules/routing/binlog/blr_master.c
2014-12-05 11:42:02 +00:00
2b998eb17f
Merging binlog router into beta refresh
2014-12-05 11:30:03 +00:00
4db86a5520
Merge branch 'release-1.0GA' of https://github.com/mariadb-corporation/MaxScale into release-1.0GA
2014-12-04 16:57:57 +00:00
36aea7454f
Updates for new logging definitions
2014-12-04 16:56:33 +00:00
12d6d81fa8
Merge branch 'release-1.0GA' into firewall
...
Conflicts:
log_manager/log_manager.cc
2014-12-04 17:13:41 +02:00
0060bbb7df
Updated the diagnostic to print rules, their types and how many times they have been matched.
2014-12-04 17:11:14 +02:00
c133a42bbd
Skip log for "Master available" with MAINTENANCE
...
Skip logging “A Master Server is now available” message when the server
has SERVER_MAINT bit value
2014-12-04 15:25:04 +01:00
84679a48ff
Fixes to Coverity defects 84335 84336 84337
2014-12-04 10:13:41 +02:00
e4c379bbdc
Fix to bug 583 http://bugs.mariadb.com/show_bug.cgi?id=583
...
Changed rwsplit.sh to explicitly use /bin/bash
2014-12-03 19:41:06 +02:00
1e2027f4dc
Fixes to Coverity defects 83027 73421 72714 72671 72646 72642
2014-12-03 17:56:22 +02:00
6d98df0c37
Added error check to mysql_backend.c to prevent unnecessary logging.
2014-12-03 15:42:04 +02:00
730cd67992
Merge branch 'release-1.0GA' of https://github.com/mariadb-corporation/MaxScale into release-1.0GA
2014-12-03 13:28:41 +02:00
b106560317
Fix to bug # 634, http://bugs.skysql.com/show_bug.cgi?id=634
...
COM_SHOW_SLAVE_STAT wasn't classified but it was treated as 'unknown' and thus routed to master.
2014-12-03 13:27:31 +02:00
3230eab37c
Merge branch 'release-1.0GA' of https://github.com/mariadb-corporation/MaxScale into release-1.0GA
2014-12-03 09:53:42 +00:00
1e5bc37780
Use strtok_r rather than strtok
2014-12-03 09:33:55 +00:00
27913edc28
Fixed query throttling using the rule to store the values instead of the user.
2014-12-03 11:07:19 +02:00
33f77303f7
Backend failed handshake is now a detected
...
Backend failed handshake is now a detected and MYSQL_HANDSHAKE_FAILED s
set.
Reload users from backend is now restricted to MYSQL_AUTH_FAILED only
2014-12-03 09:11:26 +01:00
aa8350ef8f
client's flags copied among known capabilities
...
Copy client's flags to backend but with the known capabilities mask
2014-12-02 18:47:25 +01:00
ad2ca62248
Log the start of the lsitener to the message log in line with other protocols
2014-12-02 13:39:46 +00:00
e40519885b
Updated documentation and cleaned up tests
2014-11-30 04:46:02 +02:00
1bfedbee1d
Fix to bug #629 , http://bugs.skysql.com/show_bug.cgi?id=629
...
Master was selected for routing target even there was a slave available.
2014-11-28 14:17:35 +02:00
9aa828cd9b
Added debug assertions to catch wrong DCB usage
2014-11-27 22:04:34 +02:00
3941f5c31d
Added debug trace
2014-11-27 19:48:27 +02:00
3e18e091c1
Fixed unreported bug in log_manager where a terminating character was added in the middle of log message.
2014-11-27 16:53:50 +02:00
83f7203213
Fix to unreported bug which printed result of getsockopt even in case when there was no socket error.
2014-11-27 15:37:13 +02:00
863a30c969
Merge branch 'blr' of https://github.com/mariadb-corporation/MaxScale into blr
...
Conflicts:
server/core/gateway.c
2014-11-26 08:47:50 +00:00
eaac050bff
Fixed error messages causing a disconnect from the database.
2014-11-25 18:02:31 +02:00
0900b5dbce
Merge branch 'develop' into firewall
...
Conflicts:
server/modules/filter/test/harness_common.c
2014-11-25 17:56:26 +02:00
75e9c30d49
Fixes to Coverity defects 83027 and 72714
2014-11-25 12:09:04 +02:00