Commit Graph

326 Commits

Author SHA1 Message Date
060ebc3880 Add support for Galera xtrabackup donor availability 2015-04-20 14:45:03 +02:00
4b623e3af4 Added percentage conversion functions to maxconfig.h 2015-04-16 21:51:19 +03:00
1b3af7d61f Fixes to Coverity defects. 2015-04-16 19:41:49 +03:00
d16e4fe134 Added an option for optimization of wildcard grants to individual grants. The default behavior now checks first for specific grants to a database the wildcard grants. 2015-04-15 06:51:52 +03:00
be968cfad2 Fixed missing subservices parameter in config. 2015-03-31 12:54:52 +03:00
90875c1164 Cleaned up unused variables. 2015-03-11 18:12:18 +02:00
63d83cd85d Monitor API 2.0.0 implemented. 2015-03-11 15:18:55 +02:00
9209c812ba Updates to refactoring of the monitors. 2015-03-11 10:40:53 +02:00
8d8b91d1a5 Merge branch 'develop' into monitor_refactoring 2015-03-11 07:13:01 +02:00
2c31666efa Added a configurable frequecy for the feedback task. 2015-03-11 06:51:55 +02:00
fbedad84af Fixes to Coverity defects. 2015-03-10 17:08:04 +02:00
c0d2a12990 First step to refactoring monitors. 2015-03-10 12:24:23 +02:00
65465b11f5 Fix possible NULL to atoi
Fix possible NULL to atoi
2015-03-09 18:19:25 +01:00
7af2843bcb Notification Service integration added
Notification Service integration added
2015-03-09 18:06:16 +01:00
59245b50dd Fixed compiler warning
Fixed compiler warning
2015-03-09 17:49:15 +01:00
e5283397e7 Merge branch 'MAX-348' of https://github.com/mariadb-corporation/MaxScale into MAX-348 2015-03-09 14:19:10 +02:00
02e742f29e Added unit test for feedback service. 2015-03-09 14:17:40 +02:00
af388a26b6 Feedback report frequency set to 1800 seconds
Feedback report frequency set to 1800 seconds
2015-03-09 11:05:48 +01:00
6a64457255 Fix compiler warning
Fix compiler warning
2015-03-09 09:21:59 +01:00
e952db0ee9 Notification server integration
Notification server integration: added proper logging to errors

Added “enable/disable feedback” via maxadmin/telnet
2015-03-05 18:58:07 +01:00
698af9d3b7 Send modules list into to Notification server
Send modules list into to Notification server

TODO: remove fprintf  in module_feedback_send and use log manager
instead
2015-03-05 13:20:22 +01:00
880adca73e Merge branch 'develop' into MAX-324 2015-03-05 10:45:48 +02:00
0dd63ceaf1 Added release version string function to config.c 2015-03-04 18:48:38 +02:00
7427afeb65 Added configuration parameters
Added configuration parameters and feedback_setup_info creation
2015-03-03 10:25:44 +01:00
64c0b7b041 Notification service support
Notification service support
2015-03-02 17:15:31 +01:00
ad49c5f402 Added optional millisecond precision to logfiles and created the changelog document. 2015-02-24 18:10:16 +02:00
3b29e1a1f0 Fixed merging conflicts. 2015-02-24 06:34:22 +02:00
9e7afeb302 Merge branch 'develop' into MAX-324
Conflicts:
	macros.cmake
	server/core/config.c
	server/core/service.c
	server/modules/routing/CMakeLists.txt
2015-02-24 06:26:55 +02:00
5477cdf5eb Renamed the dbshard module to schemarouter. 2015-02-24 05:49:38 +02:00
c47d2f3791 Added session timeouts.
The parameter 'connection_timeout' for services takes a value as seconds.
All sessions that have been idle for longer than this will be disconnected.
2015-02-20 22:16:43 +02:00
fc969acc73 Added optional stripping of escape characters from database names when laoding users. 2015-02-20 21:07:12 +02:00
ea55572ab8 Merge branch 'develop' into MAX-324 2015-02-20 04:45:48 +02:00
65e2572ad0 Made config_truth_value non-static. 2015-02-18 13:16:06 +02:00
03456b931b Added "yes" and "no" to the config truth value check and added the function to the header. 2015-02-18 11:45:01 +02:00
46ec9abe29 Added optional parameters for services that allow all servers to be used when building the list of users. 2015-02-09 07:19:13 +02:00
8791cc455e Added the initial implementation of the shardrouter module. 2015-01-23 06:40:30 +02:00
fed828eb29 Merge branch 'release-1.0GA' into MAX-324
Conflicts:
	server/MaxScale_template.cnf
	server/core/service.c
2015-01-06 04:45:30 +02:00
f861d67b7f Removed all references to use_sql_variables_in variable where it is used in dbshard.
Commented out dead code.
Fixed some indentations.
2014-12-16 14:14:57 +02:00
69e131e9c4 Merge branch 'MAX-324' of https://github.com/mariadb-corporation/MaxScale into MAX-324 2014-12-15 22:10:36 +02:00
7fed679f40 poll.c:poll_add_event_to_dcb did not increase the pollStats.evq_pending counter which caused it to go negative, which, inturn caused all threads to spinloop with minimal timeout. 2014-12-15 22:09:23 +02:00
319b9150dc Fixed missing ignore_databases causing a false warning. 2014-12-15 16:24:18 +02:00
a91845b324 Re-enabled the ignore list, it uses the parameter 'ignore databases=<list of db names>'.
Added routing of trivial queries and ignored databases to the first available backend.
2014-12-13 07:47:46 +02:00
2a623c6ec3 Fixed a typo in config.c 2014-12-10 18:05:58 +02:00
bc104c0ef1 Merge branch 'release-1.0GA' into MAX-324 2014-12-08 22:37:15 +02:00
4c1ed65617 Added dbshard template to MaxScale_template.cnf
Added NULL-check to createInstance to avoid NULL-pointer reference if user/pwd is missing from config.
Removed unnecessary code, added error messages, fixed intendation.
2014-12-07 23:34:47 +02:00
1e5bc37780 Use strtok_r rather than strtok 2014-12-03 09:33:55 +00:00
d3c8770852 Merge branch 'blr' into develop
Conflicts:
	client/maxadmin.c
	server/core/CMakeLists.txt
	server/core/dcb.c
	server/core/gateway.c
	server/core/poll.c
	server/core/test/CMakeLists.txt
	server/core/test/makefile
	server/include/poll.h
	server/modules/routing/debugcmd.c
2014-11-19 12:00:55 +00:00
fd11e6a7f5 Session-specific logging. Added functions
void session_enable_log(SESSION* ses, logfile_id_t id)
and
void session_disable_log(SESSION* ses, logfile_id_t id)

Which switch specific log type on/off if the log type in question is not generally enabled.

Each thread carries a thread-specific struct log_info_t which includes members for current session id and bitfield for enabled log types for the current session. That information is checked before actual log write functions are called.

Each file where session-specific logging is used, must include the following exports:

/** Defined in log_manager.cc */
extern int            lm_enabled_logfiles_bitmask;
extern size_t         log_ses_count[];
extern __thread log_info_t tls_log_info;
2014-11-19 00:08:59 +02:00
9cb2be9605 Fixes to Coverity erros 75748 and 76132. 2014-11-11 13:42:12 +02:00
39cc701b0d Branch update
Branch update
2014-11-07 16:59:01 +01:00