Commit Graph

31 Commits

Author SHA1 Message Date
0d1a74c87a Moved mysql_send_auth_error into mysql_common.c
mysql_send_auth_error is called if an user is not in the gateway users table
2013-07-15 11:17:44 +02:00
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
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
903b906044 Added the backend delayq: this will assure incoming data are queued before mysql backend connection is complete
After connection data will be written to backend
2013-07-03 09:34:22 +02:00
cd692bc020 gw_write_backend_event and gw_MySQLWrite_backend modified 2013-07-02 14:41:36 +02:00
6b8ab60628 Added strdup in log_manager call 2013-07-01 17:59:10 +02:00
5408ec1a93 Added SS_DEBUG for logmanager 2013-07-01 17:58:32 +02:00
e3f08e392b Comment modified in gw_MySQLWrite_backend 2013-07-01 17:44:39 +02:00
fd52e967db I hope that I don't break anything. Did some changes to Makefiles and sources so that liblog_manager.so can be linked-in and used. 2013-06-27 23:28:13 +03:00
3af4089c87 Modified Makefiles so that liblog_manager.so can be linked in in compilation of core/gateway.c modules/protocol/mysql_backend.c and in modules/routing readconnroute.c.
Modified source files by adding a few logging commands (skygw_log_write) to them, and by adding includes of necessary header files.
2013-06-27 23:14:33 +03:00
d965b991e6 Fixed the server_capabilities and final_capabilities initialization 2013-06-27 12:09:28 +02:00
c1981b4dc6 Removed othere fprintf 2013-06-27 00:38:55 +02:00
60c4ef45be Removed a fprintf with a uint8_t pointer that is not NULL terminated 2013-06-27 00:22:21 +02:00
f2455467ad Added same size for buffer in read and write to backend socket 2013-06-26 23:29:26 +02:00
031b6e4978 New version with all warning fixed 2013-06-26 12:33:47 +02:00
462f34c2ca Fixed some compile warnings 2013-06-26 12:18:48 +02:00
243c4870e7 Reverted versions 2013-06-26 12:07:38 +02:00
b0c193c160 Authentication funcs changed:
support for user without password.


Some better documentation in gw_mysql_connect.
2013-06-25 16:39:07 +02:00
8209c268e6 Removed useless comment 2013-06-25 08:50:52 +02:00
626699170f Removed a fprintf with wrong data to print 2013-06-24 19:29:41 +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
78c371e92f Changes to connect infrastructure 2013-06-19 19:11:35 +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
1300c5d089 Addition of dependencies to the makefile
New make target of "make depend"
Addition of doxygen building ability
Cleanup of docygen comment blocks
Initial telnetd protocol module structure
2013-06-17 14:03:05 +02:00
0a5becbe81 Added skeletons for the two MySQL protocol modules. The actual code still needs to be moved into the modules 2013-06-14 18:29:08 +02:00