1465 Commits

Author SHA1 Message Date
Markus Makela
b66dfaa8ec Fixed possible error with multi-line parameters. 2015-09-01 21:22:47 +03:00
Markus Makela
77a49e8cbd Removed magic numbers. 2015-09-01 14:31:35 +03:00
Markus Makela
e839dafdd0 Cleaned up code. 2015-09-01 14:31:35 +03:00
Markus Makela
386fa78a30 Fix to MXS-342: https://mariadb.atlassian.net/browse/MXS-342
Added more error messaging when the parsing of the configuration file fails.
2015-09-01 14:31:35 +03:00
Markus Makela
9d9b7bccfc Changed to PCRE for processing configuration file parameters. 2015-09-01 14:06:14 +03:00
Markus Makela
e0f95de606 Added commas to multi-line parameters without one. 2015-09-01 14:06:14 +03:00
Markus Makela
50d1675c7b Moved to realloc instead of always allocating new memory. 2015-09-01 14:06:14 +03:00
Markus Makela
de643df067 All configuration parameters now support multi-line style. 2015-09-01 14:06:14 +03:00
Markus Makela
72097fc30e Added support for multiline options for routers and filters. 2015-09-01 14:06:14 +03:00
counterpoint
d74990833b Move capture of user name for persistent connections; expand error message in mysql client to give more information. 2015-09-01 09:59:34 +01:00
Markus Makela
9fe479e679 Cleaned up code. 2015-09-01 10:11:20 +03:00
Markus Makela
28a6ea90c0 Added more details to log output when MaxScale receives a fatal signal. 2015-09-01 10:11:20 +03:00
counterpoint
a711b25fec Improve user name setting in DCB for persistent connections and to fix bug; change name of session_alloc_dummy to session_set_dummy to be more informative. 2015-08-28 18:20:32 +01:00
counterpoint
5338318900 Improve error message when DCB has no session pointer in poll loop. 2015-08-28 17:25:41 +01:00
counterpoint
753746f5c5 Fix mistakes 2015-08-28 16:12:36 +01:00
MassimilianoPinto
55248ec60e Merge branch 'develop' into 1.2.1-binlog_router_trx 2015-08-28 16:42:15 +02:00
Markus Makela
45227c8875 Changed service permission checks to fail when user doesn't have access rights. 2015-08-28 17:39:45 +03:00
Markus Makela
00a3d7eb56 Made service permission checks less strict. 2015-08-28 17:33:05 +03:00
counterpoint
9c5f622481 Additional spinlock in random_jkiss. Initial attempt at implementing dummy sessions to provide total consistency - used in mysql_client in relation to authentication - a single static dummy session is used and linked from the client dcb when authentication is not yet complete. 2015-08-28 15:30:06 +01:00
MassimilianoPinto
a591b47b9f Merge branch 'develop' into 1.2.1-binlog_router_trx 2015-08-28 16:09:32 +02:00
Markus Makela
3a901bfea7 Added automatic configuration of localhost_match_wildcard_host. 2015-08-28 14:55:40 +03:00
Markus Makela
c5214bea1b Cleaned up code and changed function structure. 2015-08-28 12:54:38 +03:00
Markus Makela
296bdc5df6 Fixed errors and added comments. 2015-08-28 12:54:38 +03:00
Markus Makela
525daf827a Service are not started if user permissions are inadequate.
Also cleaned up code and error messages.
2015-08-28 12:54:38 +03:00
Markus Makela
cb2b465510 Changed queries to more closely match actual queries. 2015-08-28 12:54:38 +03:00
Markus Makela
b232c49742 Fixed function documentation. 2015-08-28 12:54:38 +03:00
Markus Makela
4da9045da4 Removed redundant function. 2015-08-28 12:54:38 +03:00
Markus Makela
94eb1b4eb1 Added service and monitor permission checks. 2015-08-28 12:51:37 +03:00
counterpoint
0d62f52812 Ensure thread safe through use of spinlock; add further comments. 2015-08-28 09:12:41 +01:00
Markus Makela
0c552bab29 Fix to MXS-35: https://mariadb.atlassian.net/browse/MXS-35
The parent process now correctly returns the value from the child process.
2015-08-27 14:22:58 +03:00
counterpoint
c01aa6952e Fix initialisation problem; put all statements on separate lines. 2015-08-26 17:16:10 +01:00
counterpoint
57b82dcedb Correct initialisation logic. 2015-08-26 16:36:08 +01:00
Markus Makela
70d82fd45e Fixed compilation problems. 2015-08-26 18:33:46 +03:00
counterpoint
820bb4ea00 Avoid name clash - change random to random_jkiss 2015-08-26 16:18:08 +01:00
counterpoint
162db13523 Add actual random number generation code. 2015-08-26 15:43:43 +01:00
counterpoint
1f6b544f33 Tidy dcb_free (prefer use of dcb_close) and remove from test code; add good random number generator. 2015-08-26 15:43:21 +01:00
MassimilianoPinto
23d24d935c Merge branch 'develop' into 1.2.1-binlog_router_trx 2015-08-26 11:46:02 +02:00
Markus Makela
3e863863dd Fixes to Coverity defects. 2015-08-26 09:35:10 +03:00
Markus Makela
ab86b67bda Fixed missing include. 2015-08-25 21:23:55 +03:00
MassimilianoPinto
85d11436d7 Merge branch 'develop' into 1.2.1-binlog_router_trx 2015-08-25 16:10:43 +02:00
MassimilianoPinto
1c9b0665ee Use dcb_close() instead of dcb_free()
Use dcb_close() instead of dcb_free()
2015-08-25 16:08:29 +02:00
Markus Makela
79c77d3f01 Fixed compiler warnings. 2015-08-25 15:23:27 +03:00
Markus Makela
1658e3d704 Added more verbose error messages and fixed bugs. 2015-08-25 15:20:10 +03:00
Markus Makela
f58e7af94d Added a define for the PID file desciptor initial value. 2015-08-25 15:20:10 +03:00
Markus Makela
372403760c Cleaned up code. 2015-08-25 15:20:10 +03:00
Markus Makela
063c8f904a Fixed wrong file open mode. 2015-08-25 15:20:10 +03:00
Markus Makela
0a33174803 Added PID file locks and cleaned up code. 2015-08-25 15:20:10 +03:00
Markus Makela
1dd22a4d2c Cleaned up code and error messages. 2015-08-25 15:20:10 +03:00
Markus Makela
b1d6096fa8 Added a check for running MaxScale processes. 2015-08-25 15:20:10 +03:00
counterpoint
72b301785b Complete implementation of error logging when no session pointer in DCB. 2015-08-25 12:25:36 +01:00