45c28a033e
Added support form COM_CHANGE_USER in readwritesplit.c
...
Added func.auth() and func.generic() in dcb.h
Some mysql routines moved into mysql_common.c
New session user still not saved in the dcb->data
2013-07-15 09:03:51 +02:00
29d260e6bf
Removed fprintf in backend operations.
...
Some fprinf still available for gateway incoming connection and backend selection
2013-07-05 10:36:59 +02:00
5e06ba76dd
Fixed function name mysql_send_custom_error in mysql_common.c and removed from mysql_client.c.
...
The revision 150 is then not working
2013-07-05 09:59:54 +02:00
740a001d01
moved mysql_send_custom_error to mysql_common.c
...
The failed backend auth now forces the closeSession and also sets thre router session = NULL
This will be changed introducing another state in the session struct
2013-07-05 09:38:52 +02:00
e8ee2a3e9b
Removed useless code from mysql_backend.c and mysql_common.c
2013-07-04 15:19:52 +02:00
4adf121de9
Now the MySQL connect phase is fully asynchronous
...
EINPROGRESS will set the MYSQL_PENDING_CONNECT protocol state
2013-07-04 12:43:16 +02:00
77c759ac33
New version of mysql async connect: preparing for the new connect()
2013-07-03 10:01:35 +02:00
24079799fa
MySQL connect async routines use read/write from/to socket instead of dcb
2013-07-02 16:51:10 +02:00
6f32637315
New functions added in mysql_common for full asysncronous mysql connect
...
The new funcs are not yet used in the public repo
2013-07-01 14:34:47 +02:00
0457505721
Added DCB_STATE_CONNECT fro backe d connect status
...
Added gw_decode_mysql_server_handshake() in mysql_common.c
2013-07-01 11:37:26 +02:00
3fb7307ade
Fixed compile warnings
2013-06-26 12:13:04 +02:00
243c4870e7
Reverted versions
2013-06-26 12:07:38 +02:00
d5590c6d0e
Removed unused vars and fixed warnings, mysql_backend.c is still missing
2013-06-26 10:27:25 +02:00
e767c70acb
Added backend connections via session_alloc called after AUTH_OK
...
the newSession calls connect_dcb and then the connect() in mysql_backend.c
The selected backend is always the last one ath the moment.
For the transparent Authentication dcb->data is used to store MySQL session data before starting the session.
This could be revisited.
Please note the COM_QUIT in mysql_client.c has the close functionalities but they are now disabled for testing/debug
2013-06-21 13:05:51 +02:00
0fc2f9dda3
Removed the passing of epoll fd and isolated epoll functionality to
...
a signle file
Addition of show epoll debug CLI command
2013-06-19 16:29:52 +02:00
4d5215e267
mysql_client_server_protocol.h, new file name that avoids conflicts with previous one
2013-06-17 22:47:14 +02:00
aa517205b7
Added mysql_common.c for mysql common routines
...
First attempt to split MySQL routines in client and backend libraries.
Compiled on Centos but not tested
mysql_protocol.h header file is coming soon.
2013-06-17 16:25:22 +02:00