70eef7aaa8
Fix to bug #513 , http://bugs.skysql.com/show_bug.cgi?id=513
2014-11-17 15:33:13 +02:00
8c1e7172f3
Added debug logging for #615
2014-11-14 20:48:33 +02:00
d090eee09b
Messages moved from stderr to MESSAGE log
...
Messages moved from stderr to MESSAGE log
2014-11-14 10:19:04 +01:00
9edee192a8
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
2014-11-13 18:00:43 +02:00
175711a1bc
Fix to #601 , http://bugs.skysql.com/show_bug.cgi?id=601
...
if (func.auth ==)gw_change_user->gw_send_change_user_to_backend is called before backend has its scramble, auth packet is set to backend's delauqueue instead of writing it to backend. When backend_write_delayqueue is called COM_CHANGE_USER packets are rewritten with backend's current data.
2014-11-13 17:55:29 +02:00
aaa9bfd5c2
Fixes to Coverity defects 78241 78242 78243 78244 78245
2014-11-13 08:56:02 +02:00
fc5c3943e8
Fixes to Coverity defects:
...
72643
72645
72655
72656
72657
72658
72664
72698
72712
2014-11-12 19:02:37 +02:00
0ea4dd63a9
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
2014-11-11 14:25:49 +02:00
061fa62d29
Fixes to Coverity issues 77197 (mysql_common.c, dcb.c, mysql_client.c, skygw_debug.h), 72654 (poll.c), 72756 (mysql_backend.c), 72744 (mysql_backend.c), 77197 (mysql_common.c), 72746 (mysql_common.c), 72676 (mysql_common.c), 72705 (readwritesplit.c), 72697 (readwritesplit.c), 72652 (skygw_debug.h)
2014-11-11 14:10:06 +02:00
49d28bc1f3
MySQL connect: charset flag is stored
...
MySQL connect: charset flag is stored and passed to backend
2014-11-10 16:09:55 +01:00
9a5168c3e8
Put errors ganerating code behind FAKE_CODE macro, which is not defined by default in any build.
2014-11-10 15:22:08 +02:00
3b07449daa
Fix to bug #614 , http://bugs.skysql.com/show_bug.cgi?id=614
...
Added protected state check to mysql_client.c, fixed locking in session.c
2014-11-10 14:07:51 +02:00
44771dbc51
readwritesplit.c:handleError is meant to handle backend errors. Removed one call from mysql_client.c and only send error message to client instead.
...
Added checks to debug build to ensure that handleError is called before backend DCB is closed.
2014-11-07 17:55:05 +02:00
9ccbab1899
poll.c:dcb_close Don't call poll_remove_dcb anymore if DCB has already been removed from poll set.
...
mysql_backend.c, mysql_client.c free error message GWBUF after calling handleError
readconnroute.c:handleError send error message to client before returning.
readwritesplit.c:handleError don't free error message buffer anymore since the caller of handleError frees it.
2014-11-01 20:00:59 +02:00
b6fe4e620a
Fixed another leaking socket. Coverity 72706
2014-11-01 15:28:41 +02:00
f1c4c1dfb2
Fixed one more socket leak
2014-11-01 00:01:38 +02:00
8aff04b0e9
Fixed Coverity case 72706
2014-10-31 23:35:29 +02:00
deffd4a69f
Fix to Coverity cases 73417, 73420, 72759, 72639
2014-10-31 23:11:19 +02:00
a342b453ac
Fixed Coverity tasks : 72722, 72706
2014-10-31 15:55:13 +02:00
970511a275
Update for message errors in DB authentication
...
Update for message errors in DB authentication
2014-10-24 12:20:50 +02:00
35996a40cb
Reply messages for failed db authentication
...
Reply messages for failed db authentication
2014-10-23 19:36:25 +02:00
8dd20a10e6
reload users with db auth failed
...
reload users with db auth failed
2014-10-22 17:56:40 +02:00
a1f621da30
MySQL authentication with db name
...
MySQL authentication with db name
2014-10-21 16:46:52 +02:00
3cdb1dc2ae
Added db names as hashtable
...
Added db names as hashtable
2014-10-20 19:26:13 +02:00
b8f590e67f
Added database errmsg to change_user
...
Added database errmsg to change_user
2014-10-17 19:02:19 +02:00
2dfa01fccc
MySQL Auth with dbname check
...
MySQL Auth with dbname check
Unknown database ‘xxxxx’ is returned to client
Proper error number is still missing and also com_change_user need to
be fixed
2014-10-16 19:17:15 +02:00
0769deed7f
MySQL Authentication with DBname
...
MySQL Authentication with DBname
2014-10-15 17:26:46 +02:00
9212effb86
memory leak fixed
...
memory leak fixed
2014-10-14 12:46:15 +02:00
273a445045
Code cleanup
...
Code cleanup
2014-10-13 10:47:27 +02:00
ee54310a73
Implementation of db auth
...
Implementation of db auth
2014-10-13 09:50:55 +02:00
29e53e150a
Fix to bug # 565, http://bugs.mariadb.com/show_bug.cgi?id=565
...
Client flags are now copied to each backend and used in their connections.
log_manager.cc: fixed string allocation where one byte was missing.
mysql_client.c: fixed string allocation where one byte was missing.
2014-10-08 22:27:28 +03:00
153a1cd385
Fixed the fix: invalid packet test removed.
2014-10-07 18:41:53 +03:00
07fc5162a0
Fix to bug #562 , http://bugs.mariadb.com/show_bug.cgi?id=562
...
mysql_client.c, added functions create_auth_fail_str, and get_username_from_auth to implement creation of similar error msg with MySQL. There is one difference left, because MaxScale prints IP address instead of hostname in error message.
2014-10-07 18:00:22 +03:00
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
c4ca1ddb13
Updated non-source files with new company name.
2014-10-01 15:21:47 +03:00
b0683d9b4d
Updated the licensing year from 2013 to 2013-2014
2014-10-01 14:37:12 +03:00
f4e591e382
Changed 'SkySQL Gateway' to 'MariaDB Corporation MaxScale'
2014-09-30 13:15:03 +03:00
c344231f80
Renamed all occurences of SkySQL to MariaDB Corporation
2014-09-30 13:02:10 +03:00
5721df5176
Add initial file number
...
Fix for short binlog file names in rotate
Socket buffering changes
2014-09-19 13:40:38 +01:00
f3d32087d8
Performance improvement or streaming large result sets.
...
-bash-4.1$ time mysql -h 127.0.0.1 -P4007 -umassi -pmassi information_schema -q -e "select * from engines a, engines b, engines c, engines d, engines e;" > /dev/null
real 1m16.137s
user 0m0.660s
sys 0m0.392s
-bash-4.1$ time mysql -h 127.0.0.1 -P4007 -umassi -pmassi information_schema -q -e "select * from engines a, engines b, engines c, engines d, engines e;" > /dev/null
real 0m0.980s
user 0m0.944s
sys 0m0.027s
2014-09-16 12:37:57 +01:00
c2847c7ddb
Clean up.
2014-09-14 10:17:09 +03:00
8e5d852dde
Merge branch 'release-1.0beta-refresh' of https://github.com/skysql/MaxScale into release-1.0beta-refresh
2014-09-13 21:29:36 +03:00
2012dfdd35
Fix to bug #541 , http://bugs.skysql.com/show_bug.cgi?id=541
...
Long ~0.5MB queries blocked MaxScale.
mysql_client.c:gw_read_client_event: Fixed packet reading logic. Reading didn't work when packet exceeded read buffer size.
mysql_common.c:gw_MySQL_get_next_packet: number of bytes to be copied to continuous buffer was calculated wrong, thus resulting in broken packet.
readwritesplit.c:disabled creation of canonical query in debug build because it slows down the processing too much with long queries
2014-09-13 21:16:44 +03:00
7108add6f5
code cleanup localhost_match_wildcard_host
...
code cleanup for localhost_match_wildcard_host
2014-09-12 17:21:34 +02:00
5a28a73fcb
gwbuf_append's return value wasn't read in gw_read_client_event
2014-09-12 18:10:42 +03:00
8b5b4a17fe
Merge from Z3
...
Merge from Z3
2014-09-11 12:51:16 +02:00
7245d1baa1
blr branch merge
...
blr branch merge
2014-09-11 12:20:42 +02:00
e74da1c630
Added chmod 0777 for unix sockets
...
Added chmod 0777 for unix sockets
2014-09-09 10:00:49 +02:00
81e1dd8719
Merge branch 'develop' into blr
...
Add instrumentation
Remove mutexes
Improve gwbuf_append performance
Conflicts:
server/core/dcb.c
server/modules/protocol/mysql_backend.c
2014-08-28 11:41:26 +01:00
677a44f497
Merge from release-1.0beta to Z2
2014-08-15 18:00:39 +03:00