Johan Wikman
105f626e76
IEC prefixes are matched case-insetensively
...
If the case of the initial character does not matter, then the case
of the following 'i' should not matter either.
2017-01-23 10:11:26 +02:00
Johan Wikman
d63f8727c2
Wrap Configuration-Guide.md
...
Lines wrapped at 80 chars. No other changes.
2017-01-23 10:05:31 +02:00
Johan Wikman
4d0854f4b0
Wrap binlog router documentation
...
Only wrapping at 80 chars per line, no change of contents.
A minor change will follow.
2017-01-23 09:55:59 +02:00
Markus Mäkelä
50f594fa4e
Fix ccrfilter parameters
...
The filter used the value of `count` for the `time` parameter.
The `options` parameter used the old-style parsing of the options and the
`match` and `exclude` parameters didn't use config_copy_string.
2017-01-22 09:24:00 +02:00
Markus Mäkelä
03402a86ed
Check that ccrfilter time is enabled before using it
...
The filter calculated a time difference which was negative if the filter
was not configured to use time intervals.
Added more info level logging to help determine how the filter behaves.
2017-01-22 09:24:00 +02:00
Markus Mäkelä
4e6fde8a23
Use query type instead of operation for ccrfilter
...
The query operation not being a select is too strict and not very
precise. Only queries that actually modify data should trigger the adding
of routing hints.
2017-01-22 09:24:00 +02:00
Esa Korhonen
8cffa4ad58
Divide poll.h to core and public headers
...
Also some cleanup of other headers.
2017-01-20 17:15:27 +02:00
Markus Mäkelä
468411250d
Fix old header names in modules
...
Some of the modules still used the gw_authenticator.h name.
2017-01-20 16:57:04 +02:00
Markus Mäkelä
4ee7f4c91d
Add some extra debug assertions
...
The debug assertions help catch false positives in server state change
logic.
2017-01-20 16:57:04 +02:00
MassimilianoPinto
7824c98dcc
Maxrows filter is now the core
2017-01-20 15:46:03 +01:00
MassimilianoPinto
b4d7739bdc
namedserverfilter.c: removed unused var
...
Removed unused var in namedserverfilter.c
2017-01-20 14:40:29 +01:00
Johan Wikman
d012f137c6
Update cache documentation
2017-01-20 14:02:32 +02:00
Johan Wikman
872bbd1ab3
Make cache part of the core
2017-01-20 13:30:00 +02:00
Johan Wikman
be1bdfaa92
Mark masking as part of the core
2017-01-20 13:30:00 +02:00
MassimilianoPinto
57b530a2e8
MXS-1065: add wildcards support to source option in namedfilter
...
It’s possible to add % wildcards in the ‘source’ option of
namedserverfilter.
Allowed values, for an IP address only are:
X.%.%.%
X.Y.%.%
X.Y.Z.%
The match any ‘%’ is not allowed
2017-01-20 12:15:20 +01:00
Esa Korhonen
6dc6d6280a
Rename some .c-files, removing gw-prefix
...
May require reconfiguring the build. Some "gw":s are still
remaining, at least in test files.
2017-01-20 12:55:52 +02:00
Esa Korhonen
6e38276a20
Rename files, removing "gw"-prefix
...
Also gwdirs.h.in -> paths.h.in
2017-01-20 12:55:52 +02:00
Markus Mäkelä
568239d2b5
Ignore auxiliary server status bits for state changes
...
The auxiliary status bits for the server were treated as if they changed
the real state of the server. The stale status bits don't affect the real
state of the server so they should be ignored when monitors check for
state changes in servers.
2017-01-20 09:10:44 +02:00
Markus Mäkelä
ffc68a688f
Fix mqfilter build failure
...
It called an internal session function for no real reason.
2017-01-20 09:09:56 +02:00
Markus Mäkelä
5a2a69b7be
Make enum parameter values unsigned 64bit integers
...
Making the enum value relatively large removes the need to expand it if a
module requires a significant amount of enumeration values.
2017-01-19 16:03:05 +02:00
Markus Mäkelä
dbeb208a5c
Remove unnecessary function from header
...
The function was only used in one place.
Also added a debug assertion for the monitor event detection mechanism.
2017-01-19 16:03:05 +02:00
Esa Korhonen
eff34b91fb
Move modules.h to core/maxscale
...
Also remove some unnecessary includes + cleanup
2017-01-19 15:53:25 +02:00
Esa Korhonen
53c5b475ad
More cleanup of monitor.h
...
Move some more functions into core header + miscellaneous cleanup
2017-01-19 15:32:40 +02:00
Esa Korhonen
02a8f7492e
Divide session.h to internal and interface headers
...
Definitions and function used by core are in
server/core/maxscale/session.h
Definitions and function used by plugins are in
include/maxscale/session.h
2017-01-19 15:19:40 +02:00
Johan Wikman
c9a61fec6d
Masking: Use common constants
...
- Response related constants moved from ComPacket to ComResponse
- Constants defined using defines from .../maxscale/protocol/mysql.h
2017-01-19 14:52:13 +02:00
Johan Wikman
6499994af8
Cache: Use existing defines
2017-01-19 14:52:13 +02:00
Johan Wikman
1077b313a4
Cache: Handle large packets
...
Basically the only thing that needs to be done is not to mistake
a 8 byte length encoded integer as an EOF packet.
2017-01-19 14:52:13 +02:00
Markus Mäkelä
4df3ec501a
Remove extra %s in log message
...
The %s was added twice in two different places.
2017-01-19 14:48:54 +02:00
Markus Mäkelä
624d91aeca
Log a message when a SSL listener is created
...
Seeing the type of the listener that was created helps to analyze the
actions done at runtime.
2017-01-19 14:27:14 +02:00
Johan Wikman
8aa76727d2
Remove explicit long indicator of size defines
2017-01-19 10:42:05 +02:00
Esa Korhonen
7ed7f972b1
Divide monitor.h to internal and interface headers similar to filter.h
...
Definitions and function used by core are in
server/core/maxscale/monitor.h
Definitions and function used by plugins are in
include/maxscale/monitor.h
2017-01-19 09:50:48 +02:00
Johan Wikman
31c8481f6c
Fix cache parameter default value
2017-01-19 09:26:37 +02:00
Johan Wikman
8c236c1cdc
Define ComEOF packet length in terms of MYSQL_EOF_PACKET_LEN
2017-01-19 09:26:37 +02:00
MassimilianoPinto
cfcd1dc38f
Maxrows filter uses new constants: MYSQL_EOF_PACKET_LEN and MYSQL_OK_PACKET_MIN_LEN
...
New constants MYSQL_EOF_PACKET_LEN, MYSQL_OK_PACKET_MIN_LEN are now
used by max rows filter
2017-01-18 15:47:04 +01:00
Johan Wikman
e624586673
Add define for EOF packet size
2017-01-18 16:02:32 +02:00
Johan Wikman
e4d6af37a9
Masking: Distinguish between EOF and 8 byte integer
...
When processing the response to a COM_QUERY, the rows will be
terminated by an EOF packet. However, as the type byte of an
EOF packet is 0xFE and the identifying byte of an 8 byte length
encoded integer is also 0xFE it is not possible to distinguish
the two except by also looking at packet length.
2017-01-18 14:31:48 +02:00
Johan Wikman
fde8b52aea
Update version for 2.1.0
2017-01-18 12:48:13 +02:00
Esa Korhonen
00f77bbe69
Fix some leftovers from the SESSION->MXS_SESSION and related renames
...
Renames only.
2017-01-18 11:50:52 +02:00
MassimilianoPinto
46e9e6f4e7
MXS-406: documentation update for Galera monitor
...
The galera monitor has a new option: set_donor_nodes
2017-01-18 09:46:20 +01:00
Johan Wikman
ce4e26477b
Masking: Clarify documentation
2017-01-18 08:45:51 +02:00
Johan Wikman
fbb63f4eb8
Masking: Handle larger than 16MB payloads
...
Larger than 16MB payloads can either be ignored or then they may
cause the session to be aborted.
2017-01-18 08:45:51 +02:00
Johan Wikman
969e423eb2
Masking: Add large_payload parameter
...
The masking filter will assume payloads less than 2^24 - 1. The
behaviour if payloads larger than than are encountered can be
configured.
The actual implementation follows in a subsequent change.
2017-01-18 08:44:04 +02:00
Johan Wikman
16a76fcd28
Rename qc_get_type() to qc_get_type_mask()
...
To make it plain that it is a mask that is returned and not a
specific value from the enum qc_query_type_t.
2017-01-18 08:34:53 +02:00
Johan Wikman
86c97a2109
Analyze binary prepared statements as well
...
Now that the query classifier can be given COM_STMT_PREPARE packets
in addition to COM_QUERY packets, binary prepared statements will
be subject to the same analyses as any other statement.
2017-01-18 08:34:53 +02:00
Johan Wikman
ded9f668f1
QC: Parse statements in COM_STMT_PREPARE packets
2017-01-18 08:34:53 +02:00
Johan Wikman
f7892843b5
Handle prepared named statements in firewall filter
...
Binary prepared statements need to be addressed separately.
2017-01-18 08:34:53 +02:00
Markus Mäkelä
338c625b9a
MXS-951: Update connector version
...
The 2.3.2 version of the Connector/C has the fix for the missing character
sets and collations.
2017-01-18 08:31:47 +02:00
Markus Mäkelä
5fc7b277da
Change SESSION to MXS_SESSION
...
Some modules didn't use the new MXS_SESSION structure.
2017-01-18 08:31:47 +02:00
MassimilianoPinto
19b678abfe
MXS-406: check for log message is now fixed
...
Log message now appears with the right variables check
2017-01-17 16:06:11 +01:00
Markus Mäkelä
c62be62618
Add missing galeramon modifications
...
The changes for MXS-406 were lost when the file was formatted and the
changes were rebased.
2017-01-17 16:57:21 +02:00