MassimilianoPinto
e8c53e8aa5
Fix authenticator path in testbinlog.c
...
Added missing subdirectories in library path
2017-01-27 15:12:06 +01:00
Esa Korhonen
1f9b18e3bc
Split secrets.h to public and core + miscellaneous cleanup
...
Also, changed some function names to this_style from thisStyle. More of
this in later commits.
2017-01-27 15:33:52 +02:00
Esa Korhonen
6cc205dafa
Remove redefinition of QUEUE_CONFIG
...
Causes compile to fail on Centos 7.
2017-01-27 15:22:54 +02:00
Johan Wikman
3689d95c34
Fix masking documentation
2017-01-27 13:36:17 +02:00
Markus Mäkelä
50cffed5b2
Add readwritesplit options to diagnostic output
...
This helps detect the state of the loaded configuration.
2017-01-27 12:19:27 +02:00
Markus Mäkelä
6f24502e14
Fix extra space in list services
output
...
The output is now consistent.
2017-01-27 12:19:27 +02:00
Markus Mäkelä
4adc9d705b
Build Jansson if library not found
...
If the Jansson JSON library is not found on the system, it is built from
source.
2017-01-27 12:19:27 +02:00
Markus Mäkelä
89f456840c
Add monitor
parameter to services
...
Services now accept a monitor as a source for servers. This removes the
need to redundantly list the same servers parameters in multiple places.
2017-01-27 12:19:27 +02:00
Markus Mäkelä
8a1a4c91e4
Enable disable_sescmd_history
by default
...
The combination of the default values of `disable_sescmd_history=false`
and `max_slave_connections=100%` does not make sense as it is not possible
to find a replacement slave in case an active one fails.
2017-01-27 12:19:27 +02:00
Esa Korhonen
3b716bc707
Split queuemanager.h to public and core headers
...
Almost everything was moved to core.
2017-01-26 17:05:17 +02:00
Esa Korhonen
8b83bf834e
Clean up router.h
...
Nothing moved to core, just rename and cleanup.
2017-01-26 16:14:17 +02:00
Esa Korhonen
74225daf46
Remove memlog and rdtsc
...
Neither of these were actively used, so they and any associated tests
were removed.
2017-01-26 13:16:51 +02:00
Esa Korhonen
8d07604436
Split maxscale.h to public and private parts
...
This header defines some general functions and maxscale main() return
values. Most of it is still public, but there were some functions
which were moved to a core header.
2017-01-26 11:17:25 +02:00
Markus Mäkelä
5630afebff
Fix typo in COM_SET_OPTION comment
...
The comment had the option meanings reversed.
2017-01-26 10:55:32 +02:00
MassimilianoPinto
1a5f79de22
MYSQL_COM_SET_OPTION added to STRPACKETTYPE
...
MYSQL_COM_SET_OPTION is detected and displayed in log messages
2017-01-26 09:02:53 +01:00
Markus Mäkelä
4b7f282f14
Handle COM_SET_OPTION in client protocol
...
The client protocol capability bytes are now updated when a COM_SET_OPTION
is executed.
2017-01-26 09:57:29 +02:00
Markus Mäkelä
3378edc4d3
Route COM_SET_OPTION to all servers
...
This fixes problems with multi-statement execution which is only enabled
when the corresponding option is present.
2017-01-26 09:57:29 +02:00
Esa Korhonen
aa8851fbe1
Remove listmanager
...
The file wasn't used, so any traces of listmanager.h or .c have been
erased.
2017-01-25 16:11:12 +02:00
Esa Korhonen
7d51864402
Clean config.h some more
...
Moved some typedefs to router.h and server.h, changed a few
constants to these enums. Renamed some types in config.h to
remove "Gateway".
There are still some functions in the public header which are
only used in core, but they seem to fit the theme of public functions
so were not moved.
2017-01-25 16:05:51 +02:00
Markus Mäkelä
b923589222
Fix relaxed multi-statement mode
...
The relaxed mode for multi-statements wasn't working as it required the
configuration to be enabled.
2017-01-25 15:39:10 +02:00
MassimilianoPinto
a1f54366c0
Fix compilation error
...
Fix compilation error
2017-01-25 14:27:21 +01:00
MassimilianoPinto
be7344f747
MXS-185: "read-only" transactions detected in readwritesplit handleError
...
handleError can detect READ ONLY transaction set when problem_dcb ==
rses->forced_node->bref_dcb.
Session will be closed and rses->forced_node set to NULL
2017-01-25 12:58:10 +01:00
MassimilianoPinto
b23d3e6198
MXS-185: "read-only" transactions to be directed to the slaves by the readwritesplit router
...
START TRANSACTION READ ONLY
statements
COMMIT
All statements, including START … and COMMIT are routed to same slave
server
2017-01-25 11:43:17 +01:00
Markus Mäkelä
286f44ac80
Fix cdc add_user
false error message
...
The success check was inverted for the adding of a user.
2017-01-25 11:11:42 +02:00
Markus Mäkelä
99f6d4678d
Make COMMIT/ROLLBACK a part of the transaction
...
The transaction tracking now flags the transaction as open even when a
COMMIT/ROLLBACK is received. The next statement after the transaction is
closed resets the transaction state to inactive. This means that the end
of the transaction belongs in the transaction.
This allows all statements that belong to a transaction to be detected
with the transaction tracking functions provided by the core. With this,
the routing modules should have an easier time handling transactions.
2017-01-24 20:36:39 +02:00
Markus Mäkelä
c77bb502e9
Store transaction type bit on transaction end
...
When the transaction ends, it's good to know what type of a transaction
just ended. Currently, this will be used by readwritesplit to detect when
a read-only transaction ends.
2017-01-24 20:36:39 +02:00
Markus Mäkelä
81be935fa9
Track transaction end as well as start
...
The COMMIT and ROLLBACK are now detected. This can be used to route the
trailing end of a transaction to a specific server.
2017-01-24 20:36:39 +02:00
Markus Mäkelä
6bcf0b1fd6
Add build requirements to GSSAPI authenticator documentation
...
The GSSAPI authenticator documentation now lists the packages it requires
when it is being built.
2017-01-24 20:36:39 +02:00
Esa Korhonen
fe1863bb49
Remove bitmask.h & .c, since the container is no longer used
2017-01-24 14:28:28 +02:00
Esa Korhonen
b187afdcf4
Move config_runtime.h and externcmd.h to core
...
+ some cleanup
2017-01-24 13:05:21 +02:00
Esa Korhonen
641896872e
Rename GW_AUTHENTICATOR and GW_BITMASK + cleanup
2017-01-24 10:03:36 +02:00
Johan Wikman
126d9be749
Remove noisy logging
2017-01-23 15:31:01 +02:00
Johan Wikman
72aebbdbb3
Add missing include file
2017-01-23 15:29:23 +02:00
Johan Wikman
47d21bd519
Masking: Change "rules_file" parameter to "rules"
...
The firewall filter and the cache have similar rules files and
they use "rules". To be consistent, the masking filter should
use "rules" as well.
2017-01-23 15:17:23 +02:00
Johan Wikman
ead0d4fe3e
No point storing version info in transient storage
...
As the RocksDB storage is re-created at each startup it does not
make sense to store version information in it.
2017-01-23 15:09:13 +02:00
Johan Wikman
6a90b0c629
Ok to continue even if storage directory is created at startup
...
Due to some refactoring that possibility had been lost.
2017-01-23 15:08:57 +02:00
Esa Korhonen
9430da94b9
Further cleanup of monitor headers
2017-01-23 14:16:34 +02:00
Markus Mäkelä
7723641687
Ignore relay master and external slave state changes
...
When the relay master or external slave states change, they should be
ignored in the current implementation. When the relay master and slave of
external master events are added, the events can be enabled.
2017-01-23 13:38:56 +02:00
Markus Mäkelä
5cd347ff18
Add the expression to debug assertion log message
...
The actual expression that failed should help figure out what went wrong
from the logs alone.
2017-01-23 13:38:56 +02:00
MassimilianoPinto
4f03aa674c
Named Server Filter documentation update
...
Named Server Filter can handle % wildcards in optional ‘source’
parameter
2017-01-23 11:47:50 +01:00
Johan Wikman
eb05132a5c
Cache: Use MXS_MODULE_PARAM_SIZE
2017-01-23 11:01:57 +02:00
Johan Wikman
31227e526b
Add reference to "sizes" documentation
2017-01-23 10:28:28 +02:00
Johan Wikman
806a25167a
Add documentation on IEC and SI prefixes
2017-01-23 10:19:20 +02:00
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