7cdffb26e6
poll_add_db moved from dcb_connect to backend_dcb->func.connect()
2013-07-24 14:38:17 +02:00
3407dff210
Addition of a Galera Cluster monitor - sets state of joined on nodes that are joined to
...
the cluster.
Also updates to the readconnroute module to allow joined as a router option
2013-07-22 17:24:15 +02:00
075f1a2903
Comments added
2013-07-19 10:31:17 +02:00
e4f13c678e
Addition of admin user support
2013-07-18 10:31:16 +02:00
5bfaea1447
Removed fprintf for delayq
2013-07-17 18:23:34 +02:00
d9b47a9651
Addition of login authentication for telnet debug CLI - currently username and password
...
are fixed as admin/skysql
2013-07-17 18:12:32 +02:00
9025f7a1be
Fprintf removed
2013-07-17 18:05:57 +02:00
02e60e215b
Name change to MaxScale rather than gateway
...
Addition of code for dynamic reconfiguration by editign the cnf file and sendign a SIGHUP
Improvements to the make install rule
2013-07-17 13:32:04 +02:00
b6cbe3a34c
ReadConnRoute can handle now COM_CHANGE_USER
...
mysql_backend calls routeReply with backand results.
routeReply in readwritesplit.c can understand the dcb->command value
2013-07-17 10:39:08 +02:00
e0d9d45f3b
Read write split router can reply the master packet to client in session change.
...
Mysql backend handles auth and session func.
The MYSQL_SESSION_CHANGE may be not in sync with authentication
2013-07-15 18:56:14 +02:00
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
aea8af08ba
Fixes to enable multiple gateways to be run on the same machine.
...
A temporary directory is used for the data directory, incorporating the pid
in the directory name. If set then the data directory will be stored in $GATEWAY_HOME,
if not it will be placed in /tmp
If $GATEWAY_HOME is set then the log files will be written to $GATEWAY_HOME/log
2013-07-11 13:02:13 +02:00
8221e75fa7
First version of read write split router. Memory is leaked but it seems that its happening in connection handling somewhere.
2013-07-10 12:31:52 +03:00
1e02af08f1
Removed fprintf
2013-07-09 15:54:10 +02:00
6b5f65fb10
New version with /show?dcb|session
2013-07-09 15:39:03 +02:00
e6b72a1900
Added - rm *.so to clean to avoid accidentally use old libraries that were just lying around.
2013-07-09 12:33:25 +03:00
15cba9895c
Added HTTPD protocol module in configuration and Makefile
2013-07-09 10:38:58 +02:00
411647f6c3
Merge commit
2013-07-09 09:48:00 +02:00
be7d3b6481
New versions:
...
apache benchmarks succesfully done.
Example:
ab -n 1000000 -c 200 'http://127.0.0.1:6444/ '
2013-07-09 09:45:59 +02:00
38bb376e27
Merge
2013-07-09 09:54:07 +03:00
8876e664c9
The write part of the protocol is handled by gateway buffer strategy.
...
Work in progress for the incoming data
2013-07-08 14:11:44 +02:00
15ef1e072f
added /show, the first "command" that will print all the DCBs.
2013-07-08 11:46:43 +02:00
ba4e8542a2
Added the Date header
2013-07-08 10:53:24 +02:00
df34284d46
Added HTTP/1.1 and Connection: close
...
Fixed the gwbuff size: next write the httpd_print_str()
2013-07-08 10:28:40 +02:00
5a731ee2eb
Merge
2013-07-08 11:25:54 +03:00
94c0da7443
Added inclusionf of makefile.int to get necessary debug flags for compiler
2013-07-08 11:15:58 +03:00
37ba2738ba
First implementation of HTTPD module, without router.
...
Makefile in ./modules/protocol not added for now
2013-07-08 10:14:55 +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
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
24079799fa
MySQL connect async routines use read/write from/to socket instead of dcb
2013-07-02 16:51:10 +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
b33b3753dc
Removed session->backends
...
Added dcb->fd in some fprintf debug
2013-07-01 17:00:24 +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
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
cfe01d0940
Removed commented code
2013-06-27 12:54:58 +02:00
ce8de5a5e4
Fixed makefile rules for make depend so that it will always run
2013-06-27 12:44:45 +02:00
c48b2477e3
Add missing hangup entry point
2013-06-27 12:36:11 +02:00
d965b991e6
Fixed the server_capabilities and final_capabilities initialization
2013-06-27 12:09:28 +02:00
99465dd6b7
Move sending of the OK on client side authentication to the EPOLLIN event processing routine
...
Addition of a compile switch to make epoll block rather than timeout, useful only for debugging
2013-06-27 09:28:34 +02:00