9545 Commits

Author SHA1 Message Date
Dapeng Huang
23c49d65c4 refactor docment 2018-01-29 10:16:03 +02:00
Dapeng Huang
a035c91fa6 add doc for session_track_trx_state and refactor little 2018-01-29 10:16:03 +02:00
Johan Wikman
a56d0f8992 Merge branch '2.2' into develop 2018-01-26 10:26:22 +02:00
Johan Wikman
dcd57ea21b MXS-1623 Expose descriptor counts through maxadmin 2018-01-26 10:25:19 +02:00
Johan Wikman
11b0f84b8e MXS-1623 Maintain count of current/total descriptors 2018-01-26 10:25:19 +02:00
Esa Korhonen
c86ee1f53a Clarify documentation on verify_master_failure 2018-01-25 11:54:59 +02:00
Esa Korhonen
d681d0f2fa Add manual rejoin tests 2018-01-25 11:49:37 +02:00
Johan Wikman
9093f19c8b Clean up atomic_load-functions 2018-01-25 10:52:03 +02:00
Johan Wikman
b8c78ca9fe Remove erroneous casts 2018-01-25 10:52:03 +02:00
Markus Mäkelä
7b04d17ce3 Use correct function for consuming LEncStrings
Length-encoded strings should be consumed with the correct
functions. Doing pointer arithmetic with the same pointer as a parameter
appears to fail only on CentOS 6 whereas on newer systems it performs as
expected.
2018-01-24 20:30:02 +02:00
Markus Mäkelä
6b877de5bc Make gwbuf_{add|get}_property const correct
The function now takes const arguments.
2018-01-24 20:29:09 +02:00
Markus Mäkelä
dfbecc41e2 Format protocol modules
Formatted the MariaDB protocol modules with Astyle.
2018-01-24 11:20:11 +02:00
Markus Mäkelä
fe73458d65 Merge remote-tracking branch 'ybbct/MXS-1603' into develop 2018-01-24 11:15:14 +02:00
Markus Mäkelä
832676b429 Merge branch '2.2' into develop 2018-01-24 11:13:05 +02:00
Markus Mäkelä
522cbab23d Make the CDC connector C++0x compliant
As CentOS 6 is supported, the CDC connector ought to build on non-C++11
systems.
2018-01-24 11:01:22 +02:00
Markus Mäkelä
af70b00197 Merge branch '2.2' into develop 2018-01-24 10:23:51 +02:00
Johan Wikman
ed81757c04 Ensure that right close is called 2018-01-24 09:31:22 +02:00
Markus Mäkelä
c96d27a495 MXS-1538: Use the integrated CDC connector
Now that the connector resides in the same repository, it can be built as
a library for the tests. Installing the development package is one option
but it would unnecessarily complicate the build process.
2018-01-23 16:32:48 +02:00
Markus Mäkelä
f45911caf8 Extend galera_priority test case
The test now verifies that the node priorities are in effect even after
MaxScale is restarted.
2018-01-23 16:32:48 +02:00
Esa Korhonen
257034bf3e Clarify master failure verification
The two previous functions were somewhat overlapping.
2018-01-23 16:14:50 +02:00
Esa Korhonen
a25e90643a Add documentation on manual rejoin 2018-01-23 15:47:49 +02:00
Esa Korhonen
1222d2a400 Use C-string as parameter to fix compile error 2018-01-23 12:28:15 +02:00
Esa Korhonen
0bcae6117d Fix compilation errors by using defines in mysql.h 2018-01-23 12:18:52 +02:00
Markus Mäkelä
9d4e41259c Add missing CMakeLists.txt
The connectors directory file wasn't added.
2018-01-23 10:32:51 +02:00
Dapeng Huang
73e5fd52fa misc fix and remove all tail spaces 2018-01-22 22:02:22 +08:00
Markus Mäkelä
73f1005e7a Fix memory leak in test_users
Users were allocated but not freed. Same with the JSON objects.
2018-01-22 15:29:21 +02:00
Markus Mäkelä
bb1bfcb52b Fix memory leak in service parameter output
When the service parameters were converted into JSON, an array was created
that was not used.
2018-01-22 15:29:21 +02:00
Markus Mäkelä
3ade3f68a7 MXS-1538: Prevent double connecting
Connector::connect now checks whether a connection is already made before
attempting to create another one.
2018-01-22 15:29:21 +02:00
Markus Mäkelä
ef53ded057 Fix test_atomic
As the function documentation states, the expected value must be read
again after a call to atomic_cas_ptr. This is due to the fact that if the
values are not the same, the __atomic builtin version will store the
current value into the expected value.

The new value given to the atomic_cas_ptr function was the address of the
new value, not the new value itself. The behavior of the atomic_cas_ptr is
what caused the test to pass on systeems that implement the __atomic
builtins. On older systems that do not implement it, the expected value
was never modified which caused the test to hang.
2018-01-22 15:29:21 +02:00
Markus Mäkelä
ccebf38bc0 Update test configuration files
Updated the REST API and MaxCtrl configuration files with new object
names. Updated tests with new object names.
2018-01-22 15:29:21 +02:00
Markus Mäkelä
f204650bbb MXS-1538: Remove unnecessary copying of schema information
The schema related information was copied for each row. A shared pointer
to the data can be used to remove the repeated copying of the values.
2018-01-22 15:29:21 +02:00
Markus Mäkelä
070df73d99 MXS-1538: Integrate CDC-Connector into MaxScale
Added the files from the repository to MaxScale. Created a new CMake
function for installing development libraries.
2018-01-22 15:29:21 +02:00
Dapeng Huang
1729d73b19 revert deprecate eof 2018-01-22 20:28:50 +08:00
Dapeng Huang
f41f3a1544 support deprecated eof and fix eof count 2018-01-22 20:20:52 +08:00
Johan Wikman
b8e72c939d Be specific about the dangers of obfuscation 2018-01-22 13:19:03 +02:00
Dapeng Huang
81f303512e check protocol state to determine real ok packet 2018-01-22 14:52:12 +08:00
Dapeng Huang
8ce7683a0a fix parse session track info out of packet boundary 2018-01-21 18:27:00 +08:00
Esa Korhonen
459d4bb002 Turn QLA filter to C++, part1 2018-01-19 16:58:06 +02:00
dapeng
768296741a
Merge branch 'develop' into MXS-1603 2018-01-19 20:59:49 +08:00
Markus Mäkelä
998652bf24 Merge branch '2.2' into develop 2018-01-19 11:47:45 +02:00
Markus Mäkelä
05402208a5 Merge branch '2.1' into 2.2 2018-01-19 11:47:13 +02:00
Markus Mäkelä
753b97303a MXS-1606: Create maxscale_schema database if missing
The monitor will now also create the database if it is missing. Since it
already creates the table, also creating the database is not a large
addition.

Cleaned up some of the related checking code and combined them into a
simple utility function.
2018-01-19 11:34:25 +02:00
Markus Mäkelä
bbe99e458d Fix test build failure
MXS-1543 test failed to build in 2.2.
2018-01-19 11:34:25 +02:00
Markus Mäkelä
40dfd1e070 MXS-1620: Fix RPM packaging scripts
Unconditionally replace the `strip` binary with a dummy executable.
2018-01-19 11:23:28 +02:00
Johan Wikman
7c7190e0c4 Fix index overflow in masking filter 2018-01-19 09:55:20 +02:00
Dapeng Huang
0363b85e13 update mariadb connector version for MDEV-14647 2018-01-19 09:38:17 +08:00
Markus Mäkelä
d928f69cc7 Update and extend luafilter documentation
Fixed the exposed function name and added minimal configuration and script
examples.
2018-01-18 12:22:04 +02:00
Markus Mäkelä
8c0d519caa Update Connector-C to 3.0.3
Updated connector from 3.0.2 to 3.0.3.
2018-01-18 12:22:04 +02:00
Johan Wikman
beac04b8e7 MXS-1616 Also use 'value' in partial matching
As you can create regular expressions that have a fixed length,
e.g. "....$", it makes perfect sense to replace using 'value' if
the length of the string matches exactly.
2018-01-18 09:48:38 +02:00
Markus Mäkelä
47184ea46d Fix build failure on Ubuntu 17.10
The sprintf calls failed due to a warning about possible buffer
overflow. Curiously enough, the same warnings do appear on Fedora 26 but
only when the calls are changed to snprintf.
2018-01-17 14:06:19 +02:00