8ba14ee4ee
Fixed init script issue on Ubuntu
...
The init script split the command and the arguments with double quotes causing
the service to run as root instead of the maxscale user.
2016-01-19 19:29:25 +02:00
b386138fe4
Updated help messages and manpage
...
The manpage was out of date and was missing a BUGS section. The `--help` output
of MaxScale wrongly stated that the default is to log to shared memory as did
the documentation.
2016-01-19 18:36:01 +02:00
e67ebffaff
Updated help messages and manpage
...
The manpage was out of date and was missing a BUGS section. The `--help` output
of MaxScale wrongly stated that the default is to log to shared memory as did
the documentation.
2016-01-19 18:36:01 +02:00
011636cfcf
Disabled connection_timeout
because it's unsafe to use
...
The current implementation of the session timeout functionality is not safe to
use. Added a warning to the documentation and disabled the code. If the user
tries to use it, a warning is logged.
2016-01-19 15:29:01 +02:00
b470ebe732
Disabled connection_timeout
because it's unsafe to use
...
The current implementation of the session timeout functionality is not safe to
use. Added a warning to the documentation and disabled the code. If the user
tries to use it, a warning is logged.
2016-01-19 15:29:01 +02:00
508c91be32
Cleaned up monitor configuration processing
...
Moved the monitor configuration processing into its own function and cleaned
it up.
2016-01-19 14:23:44 +02:00
53ac88a1a1
Cleaned up the process of adding filters and servers to a service
...
Moved the adding of filters, servers and router options to its own function.
2016-01-19 14:23:44 +02:00
0aaba891a3
Cleaned up server configuration processing
...
Moved the creation of new servers into a separate function and cleaned up
the configuration processing.
2016-01-19 14:23:44 +02:00
c6dfcb66f5
Cleaned up service configuration processing
...
Moved the allocation and configuration of services into their own function.
Moved SSL parameter validation into a separate function.
2016-01-19 14:23:44 +02:00
f12be9fea2
MXS-549: Change MaxScale's working directory on startup
...
MaxScale now changes the working directory to the log directory when it is
started. If this fails, the file system root is used instead.
2016-01-19 13:59:38 +02:00
98ba84f78d
Remove beta status.
...
Remove all references to beta. This is now 1.3.0.
2016-01-19 13:59:10 +02:00
c1a906a60d
Remove beta status.
...
Remove all references to beta. This is now 1.3.0.
2016-01-19 13:59:10 +02:00
c2310327fc
Fixed idle session processing
...
The current implementation of idle connection timeouts is not safe. The sessions
are handled in a way which is not thread-safe and the checking is done from
a non-polling thread.
With this change, the checks for the session timeouts are done in one of the
polling threads in a thread-safe manner only if at least one service has enabled
the timing out of idle client connections.
2016-01-19 10:53:55 +02:00
cdeb921b1b
Added missing freeing of monitor resources
...
Monitor servers were not freed.
2016-01-15 21:38:40 +02:00
d41fe5b9c7
Added extra checks to readwritesplit
...
Added a check that the master server reference is actually in use before
doing anything with it. Also removed a false assertion.
2016-01-15 16:25:05 +02:00
c5947285cf
Added missing freeing of filter resources
...
Filters were not freeing their options or parameters.
2016-01-15 16:24:32 +02:00
1656840417
Added missing freeing of service resources
...
The service resources weren't freed when the service is freed.
2016-01-15 16:23:41 +02:00
a2bc15c870
Removed obsolete functions from dbfwfilter
...
The filter defined its own hashing and string comparison functions even though
there are common functions for both.
2016-01-15 16:22:18 +02:00
47f6c6613e
Added missing freeing of server resources
...
The server did not release the parameters or the slave ID list.
2016-01-15 12:42:12 +02:00
5515c71988
Reapply MXS-504 changes subsequent to optimisation changes. Merge SSL processing into non-SSL processing so far as possible, correct usage of OpenSSL, simplify where possible.
2016-01-13 10:08:37 +00:00
d13bec0647
Reformat testprotocol.c
2016-01-12 15:52:29 +02:00
183202466d
Reformat telnetd.c
2016-01-12 15:49:09 +02:00
fd9698e705
Reformat mysql_common.c
2016-01-12 15:43:33 +02:00
da29ee0f4a
Reformat mysql_client.c
2016-01-12 15:21:33 +02:00
244d7ee86c
Reformat mysql_backend.c
2016-01-12 14:57:26 +02:00
1b94c5b519
Reformat mascaled.c
2016-01-12 14:20:11 +02:00
018b87d304
Reformat httpd.c
2016-01-12 14:14:40 +02:00
040c67127a
Reindent schemarouter.c
...
- Untabify
- 4 space indent
- Allman + other style issues.
2016-01-12 13:54:23 +02:00
0a3e6b4352
MXS-498: Username and source address added to QLA filter output
...
The filter now logs the username and remote address of each client. This will
make tracking of users and their queries a lot easier.
2016-01-12 09:30:03 +02:00
985543dbb2
Fixed merge conflict
...
One function in the query classifier used the old name which led to undefined
symbols.
2016-01-12 09:19:46 +02:00
62a268a48c
Moved description of weightby
to the correct section.
...
The description was in router options instead of optional parameters.
2016-01-11 17:34:36 +02:00
3030d6f398
Moved description of weightby
to the correct section.
...
The description was in router options instead of optional parameters.
2016-01-11 17:34:36 +02:00
54ca1ab2de
Canonicalized queries remove non-executable comments
...
The comments which do not alter the functionality of a query are now removed
from canonicalized queries.
Also fixed missing semicolon in the comment removal regex and added tests
for comment removal.
2016-01-11 17:14:57 +02:00
8ee110efa8
Fixed canonicalization and added more tests
...
Fixed mistakes in the canonicalization regular expressions and altered the
functions to use a source and destination buffers. This reduces the amount
of memory allocations that take place.
Added more canonical query tests to the internal test suite.
2016-01-11 17:14:44 +02:00
e0c84e0fe3
Added removal of MySQL style comments to query canonicalization.
...
Also fixed minor issues with the canonicalization regular expressions.
2016-01-11 17:13:14 +02:00
c067bbe34a
Formatted the canonical query test.
...
The file is now formatted according to the style guide.
2016-01-11 17:13:01 +02:00
9c9e30fa08
Fixed value replacement and added more tests for canonicalization of queries
...
The value replacement was not taking session or system variables into notice.
2016-01-11 17:09:40 +02:00
995ed8c9d2
Improved query canonicalization
...
The query does not need to be parsed for it to be canonicalized and the parsing
uses the PCRE2 library. The regular expressions were changed so that only one
call to the function which replaces literal unquoted values is made.
2016-01-11 17:08:03 +02:00
b01e8b2eec
Added utils library initialization function and improved replace_quoted
...
Currently the initialization function only prepares PCRE2 patterns for use.
Added the call to the new utils_init() function to MaxScale and all relevant
tests.
The replace_quoted now uses a shared PCRE2 pattern which should remove some
of the overhead of the function.
2016-01-11 17:04:39 +02:00
f57df4b967
Hide unused public functions
...
parse_query and query_is_parsed are not used outside query classifier
anymore. Consequently, they can be made internal.
2016-01-11 15:28:00 +02:00
4d155f70b0
Remove call to parse_query.
...
Not needed anymore.
2016-01-11 15:14:27 +02:00
20bc6a4ab7
Reindent canonizer.c
...
- Untabify
- Remove trailing whitespace.
- Allman braces.
2016-01-11 15:08:27 +02:00
79fa226000
Move private type to implementation.
...
parsing_info_t is only used by the query_classifier implementation.
No need to keep it public.
2016-01-11 14:58:15 +02:00
23a7562d3a
Replace skygw_ type prefix with qc_.
...
- skygw_query_type_t renamed to qc_query_type_t.
- skygw_query_op_t renamed to qc_query_op_t.
2016-01-11 12:06:21 +02:00
2f42246880
Rename query classifier functions consistently.
...
All public query classifier functions now have the prefix qc_.
2016-01-11 12:04:52 +02:00
0a3f20f8af
Variable moved
...
Variable moved
2016-01-11 09:59:22 +01:00
ec281849aa
Remove explicit calls to parse_query.
...
Now that all query classifier functions parse the query if it
has not been parsed, there is no reason for any module to call
parse_query explicitly.
2016-01-11 10:15:13 +02:00
6e6ad67504
Parse query if it has not been parsed already.
...
Now consistently all functions parse the query if it has not
been parsed already.
2016-01-11 10:02:27 +02:00
1b0c7d0d90
Force slave disconnection when requesting an unsafe pos with blr_slave_binlog_dump
...
Force slave disconnection when requesting an unsafe pos with
blr_slave_binlog_dump
2016-01-08 18:51:36 +01:00
23ebd581dc
Fix mistake in optimise-core branch, dcb.c.
2016-01-08 14:11:50 +00:00