Commit Graph

37 Commits

Author SHA1 Message Date
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
5d2dc8961f Variable 'l' instead of 'i' in main for SS_DEBUG 2013-07-15 09:09:43 +02:00
833e594edf Changed mysql_server_init to the newer mysql_library_init. Fixed issue with directory
creation and added examples to gateway.cnf
2013-07-12 09:52:36 +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
efb6e7b7aa Added file, and line to debug print. 2013-07-10 11:30:14 +03:00
02ad5fad57 Removed references to libmysqlclient, and replaced them with those of libmysqld since, in addition to query parsing feature, libmysqld provides external connectivity. 2013-07-09 09:40:25 +03:00
9d23fb024f Do not use strcopy anymore with logging cmds 2013-07-08 11:09:48 +03:00
ecf498448c Removed useless code under comments 2013-07-01 16:21:28 +02:00
5a4ae09c51 Merge 2013-06-29 00:22:32 +03:00
2bce5415dc Removed libraries and headers referred to Query classifier because Qc is not needed in gateway and gateway needs MySQL Client library functions which can connect to remote server. 2013-06-29 00:15:58 +03:00
8257eadf12 Addition of an arbitary bitmask handling set of functions
New memory deallocation routines for the DCBS
2013-06-28 17:39:43 +02:00
3e8b19733e Added example code to router.c ModuleInit and to its Makefile. Put example codes behind SS_DEBUG macros. SS_DEBUG compile flag is defined in Makefile if DEBUG is set in build_makefile.inc, or in command line - 'make DEBUG=Y ', for example. 2013-06-28 15:27:02 +03:00
a3edff47b0 Added necessary headers and example functions and calls to gateway.c. Added necessary libs, and path definitions to Makefile so that query classifier-related headers and libs can be founded. Commented out mysql client -related stuff from Makefile to avoid conflicts. 2013-06-28 12:24:53 +03:00
c0261fd627 Changed at exit function to void skygw_logmanager_exit(void) 2013-06-28 11:39:54 +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
34fdbdb34d Addition for shutdown mechanism for the gateway
Addition of stop and restart service

Fix for telnetd in Makefile

Fix for printing the server names in services
2013-06-25 14:00:18 +02:00
2ae40546f9 Addition of global configuration section
Definition of the number of polling threads

Implementation of multiple polling threads
2013-06-25 12:02:39 +02:00
64aca25892 Changed name of poll() function to avoid conflict 2013-06-24 17:54:30 +02:00
1d3da6d18f Addition of users_update
Fixed warning in service_alloc

Correct comment in gateway.c
2013-06-24 14:39:34 +02:00
6b0220a468 Fixed compile warnings 2013-06-24 13:54:39 +02:00
0b7803a122 Addition of searching rules for the gateway.cnf file. Better diagnostics for missing
gatway.cnf file.

Cleanup for config reading when no modules could be found.
2013-06-21 17:44:49 +02:00
3956abe604 Addition of configuration file support
Cleanup a few warnings
2013-06-21 17:14:39 +02:00
cb26490a06 Addition of server status flags
Addition of dcb role API
2013-06-21 10:45:39 +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
53b6bc0a25 A number of updates to do with service startup
Telnet protocol support

Debug cli
2013-06-19 12:31:40 +02:00
ec688e6222 Addition of the service, server, serv_protocol and session structure needed to tie the elements together.
Improvements to the protocol module support

Documentation improvements

Addition of make install target
2013-06-18 16:59:01 +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
6690320542 Commiting these files 2013-06-14 14:27:43 +02:00
3b86c93adf Addition of global Makefile
First example external module, testroute, has been added. This serves more as an example than a real router
Updated module loading to used fixed GetModuleObject route and addition of ModuleInit routine
2013-06-14 11:51:54 +02:00
a5e1441cb8 Some fprintf removed.
Fixed an if statement without brackets
2013-06-13 18:38:03 +02:00
2a9e0b06ef New version 2013-06-12 22:23:09 +02:00
a9bcc3841a Converted mysql_send_ok and MySQLSendHandshake to use the new buffer management
Also added the -p option to set listener port. This is a short term measure for testing only
until we have the proper configuration in place.
2013-06-12 17:13:04 +01:00
82b70e3877 New version, state2string updated 2013-06-12 17:18:22 +02:00
2cf646d948 in utils.c see line 88 for modifications 2013-06-12 15:15:09 +02:00
c7f533abaf Split the backend read function as an example, this still needs to be reorganised into protocols
Addition of DCB diagnostics, and free routine
2013-06-12 12:57:09 +01:00
a70974d8a1 EPOLLER | EPOLLHUP moved at the begininning of the loop 2013-06-12 09:54:27 +02:00
e820e36aa3 Updated structure and added makefile 2013-06-11 14:58:21 +01:00