eff34b91fb
Move modules.h to core/maxscale
...
Also remove some unnecessary includes + cleanup
2017-01-19 15:53:25 +02:00
53c5b475ad
More cleanup of monitor.h
...
Move some more functions into core header + miscellaneous cleanup
2017-01-19 15:32:40 +02:00
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
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
6499994af8
Cache: Use existing defines
2017-01-19 14:52:13 +02:00
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
4df3ec501a
Remove extra %s in log message
...
The %s was added twice in two different places.
2017-01-19 14:48:54 +02:00
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
98c2d37156
MXS-1080: Document max_slave_replication_lag behavior
...
The max_slave_replication_lag parameter for readwritesplit only works for
monitors that detect replication lag. As the MySQL monitor is the only one
that implements this functionality, the parameter only has meaning when
used with master-slave clusters.
2017-01-19 13:10:46 +02:00
8aa76727d2
Remove explicit long indicator of size defines
2017-01-19 10:42:05 +02:00
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
31c8481f6c
Fix cache parameter default value
2017-01-19 09:26:37 +02:00
8c236c1cdc
Define ComEOF packet length in terms of MYSQL_EOF_PACKET_LEN
2017-01-19 09:26:37 +02:00
fed61fde98
Disable prepared statement execution in dbfwfilter
...
The dbfwfilter doesn't parse prepared statements for all rules which
requires that they are disabled.
2017-01-19 08:57:15 +02:00
3793f685ac
Store DATETIME correctly in avrorouter
...
DATETIME was stored as a raw year value when it should've been stored as
the raw year value minus 1900.
2017-01-19 08:57:15 +02:00
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
e624586673
Add define for EOF packet size
2017-01-18 16:02:32 +02:00
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
fde8b52aea
Update version for 2.1.0
2017-01-18 12:48:13 +02:00
8fc74e7b37
Update version for 2.0.4
2017-01-18 12:42:46 +02:00
00f77bbe69
Fix some leftovers from the SESSION->MXS_SESSION and related renames
...
Renames only.
2017-01-18 11:50:52 +02:00
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
ce4e26477b
Masking: Clarify documentation
2017-01-18 08:45:51 +02:00
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
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
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
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
ded9f668f1
QC: Parse statements in COM_STMT_PREPARE packets
2017-01-18 08:34:53 +02:00
f7892843b5
Handle prepared named statements in firewall filter
...
Binary prepared statements need to be addressed separately.
2017-01-18 08:34:53 +02:00
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
5fc7b277da
Change SESSION to MXS_SESSION
...
Some modules didn't use the new MXS_SESSION structure.
2017-01-18 08:31:47 +02:00
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
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
fb771c8a2e
Rename public types and constants in session.h
...
Preparing to split session.h into module and core sections.
2017-01-17 16:30:14 +02:00
680401cf8e
Rename public types and constants in monitor.h
...
Preparing to split monitor.h into module and core sections. Also
changed a few comments in monitor.h.
2017-01-17 15:47:13 +02:00
20034b6fd6
QC: Exclude statement that qc_sqlite does not parse
2017-01-17 14:51:19 +02:00
f9440a6b35
Parse only valid packets in dbfwfilter
...
The filter attempted to parse all packets that were routed through the
filter.
2017-01-17 14:48:43 +02:00
3205092540
Format miscellaneous files
...
Formatted client, avro and rabbitmq consumer files with Astyle.
2017-01-17 14:48:43 +02:00
3d92263cb3
Format query classifier modules
...
Formatted query classifier modules with Astyle.
2017-01-17 14:48:43 +02:00
a48be9badf
Format router modules
...
Formatted router modules with Astyle.
2017-01-17 14:48:43 +02:00
735674bb1b
Format monitor modules
...
Formatted monitor modules with Astyle.
2017-01-17 14:48:41 +02:00
c25b7629f4
Format filter modules
...
Formatted filter modules with Astyle.
2017-01-17 14:47:50 +02:00
4869fd98eb
Format authenticator modules
...
Formatted authenticator modules with Astyle.
2017-01-17 14:47:50 +02:00
1766e3a06b
Format protocol modules
...
Formatted protocol modules with Astyle.
2017-01-17 14:47:50 +02:00
0b6b9c3d81
Format core source code and headers
...
Formatted core source code and headers with Astyle.
2017-01-17 14:47:50 +02:00
f109144841
Remove indentation of switch statement labels
...
Switch statement labels are no longer indented. Parts of the code did
indent them and parts didn't.
2017-01-17 14:47:50 +02:00
f45ac341d8
MXS-406: node comparison function is now split in two different ones
...
Two new routines, compare_node_index and compare_node_priority
routines, can be used by qsort depending on sort_order var
2017-01-17 13:18:02 +01:00
23e40dc0f8
MXS-406: slave nodes are sorted before setting 'wsrep_sst_donor'
...
The slave nodes par od the cluster are sorted by wsrep_local_index or
server priority.
The sorted list od nodes is then used in ‘wsrep_sst_donor’ variable.
Note: candidate master servers are always at the end of the list
2017-01-17 13:18:01 +01:00
5b92a1f467
Remove explicit module name from log messages
...
The module name doesn't need to be logged as MXS_MODULE_NAME will be
automatically added as a prefix to all messages logged by the module.
2017-01-17 12:51:08 +02:00
842e8440d4
qc_mysqlembedded: Replace '?':s with '0':s
...
The embedded parser is not capable of parsing preparable statements
containing ?:s as ordinary statements, so they have to be replaced
with something else. Replacing them with a dummy variable cannot be
done as that will affect the type of the statement. Replacing with
0 seems to be a good compromise.
2017-01-17 12:41:54 +02:00