0261b65529
Fix avrorouter parameters
...
The two new parameters weren't documented and `server_id` used the wrong
type.
2019-07-05 14:12:59 +03:00
d45915c279
Treat empty avro filenames as an error
...
If an empty filename is requested, treat it as an error.
2019-06-26 10:17:21 +03:00
01822490ca
Fix avrorouter and cluster
usage
...
The servers defined by `cluster` wouldn't get used.
2019-06-26 10:17:21 +03:00
2ab9aa9a94
Update 2.4.0 Change Date
2019-06-25 09:19:55 +03:00
278c26cd54
Fix build failure
...
mxs::rtrim was renamed to mxb::rtrim.
2019-06-20 23:17:41 +03:00
20f595d978
Merge branch '2.3' into develop
2019-06-20 13:00:13 +03:00
301b1b63ab
MXS-2569: Always terminate schemas with newlines
...
If the stored file didn't have a newline in the schema, the schema and the
first row would be on the same line.
2019-06-20 12:32:30 +03:00
4efa9dbeea
Remove maxscale/alloc.h
...
The remaining contents were moved to maxbase/alloc.h.
2019-06-10 14:11:25 +03:00
655e5fab5b
Move length-encoded integer/string functions to maxsql
2019-06-07 11:32:46 +03:00
2ddc20cf9e
Merge branch '2.3' into develop
2019-05-28 15:19:10 +03:00
dcdcc0e44f
Fix avrorouter build failure
...
Signed to unsigned comparison.
2019-05-28 15:18:34 +03:00
65c795164c
Merge branch '2.3' into develop
2019-05-28 14:40:45 +03:00
bef8881cab
Merge branch '2.2' into 2.3
2019-05-28 14:17:43 +03:00
387bf0ccc2
MXS-2507: Fix avrorouter token processing
...
The token comparison function did the comparison wrong: The token needs to
be an exact match instead of a partial one.
2019-05-27 09:34:38 +03:00
603eac9cf8
Fix build failures
...
Narrowing type conversions in schemarouter and avrorouter.
2019-05-10 10:37:52 +03:00
418ccf861d
Format routers and monitors
2019-05-10 10:31:12 +03:00
0d13e694e4
Merge branch '2.3' into develop
2019-05-10 09:28:39 +03:00
1efe3e0b20
Fix avrorouter client notifications
...
The notifications that tell clients about new data weren't using the
correct mechanism.
2019-05-10 09:11:39 +03:00
381940ce8c
Merge branch '2.3' into develop
2019-05-09 14:35:44 +03:00
788dc429f8
Do client callback on owning worker
...
The callback should've been done on the worker that owns the DCB instead
of the main worker.
2019-05-09 12:30:26 +03:00
4186f39616
Merge branch '2.3' into develop
2019-04-23 12:11:09 +03:00
3e04922565
MXS-2415: Fix client callbacks in arvorouter
...
The DCB callbacks shouldn't be used to send more events as they cause the
callback to be called recursively. The recursive calls caused rows to be
sent before the schemas for the rows were sent. Queuing the events via the
worker mechanism prevents this.
2019-04-17 16:07:05 +03:00
733dc491d9
Integrate Replicator into avrorouter
...
Took the Replicator into use in avrorouter as an alternative to the
binlogrouter based setup. This also allows the avrorouter to automatically
handle master failovers and to start replication from GTID coordinates.
2019-04-17 14:13:44 +03:00
7723e7c933
Add modified Replicator for avrorouter
...
Repurposed the Replicator from the CDC integration project as a
replication event processing service. It is similar to the CDC version of
the Replicator and is still in the same namespace but it lacks all of the
cross-thread communication that was a part of the integration project.
2019-04-17 14:13:44 +03:00
9572ff84ea
Merge branch '2.3' into develop
2019-03-05 10:37:56 +02:00
900cbb4cff
MXS-2304 Move last config_get_x() functions inside class
2019-03-04 12:27:36 +02:00
6436d959e3
Fix avrorouter file rotation
...
The avro filenames weren't processed properly which caused them to not
work correctly.
2019-03-04 08:53:13 +02:00
2a63fb0776
MXS-2304 Store config parameter container as value in monitor and service
2019-02-22 16:53:17 +02:00
1fed465fdb
MXS-2246 Remove duplicate info in SERVICE and Service
...
Both of them contained fields for the service and router names.
Now the names are in SERVICE and they must be accessed via member
function.
2019-02-14 15:24:10 +02:00
35ab911d5c
MXS-2304 Use configuration class methods instead of separate implementations
...
Replaces parameter add/set/remove/free.
2019-02-07 13:51:16 +02:00
42b5c39f43
Merge branch '2.3' into develop
2019-02-07 10:50:27 +02:00
08a05d3ab9
Fix use of uninitialized variables
...
Building with optimization in debug mode revealed code that could in
theory result in undefined behavior.
2019-02-06 14:22:24 +02:00
5ab7734e9d
MXS-2304 Add contains() to test if a parameter exists
...
Replaces uses of config_get_param() in modules either with contains()
or get_string(). The config_get_param() is moved to internal headers,
as it allows seeing inside a config setting.
2019-02-06 12:36:23 +02:00
b8be905b08
Merge branch '2.3' into develop
2019-02-06 12:24:09 +02:00
5a409f313a
MXS-2304 Config string handling cleanup
...
Using correct functions in most cases.
2019-02-05 10:52:46 +02:00
51884c4599
Ignore malformed .avsc files
...
If the file name is wrong, ignore it.
2019-02-04 11:15:39 +02:00
882d360355
MXS-2304 Use get_size() instead of config_get_size()
2019-02-01 17:23:14 +02:00
f2d2202ea3
MXS-2304 Use get_enum() instead of config_get_enum()
2019-02-01 10:29:24 +02:00
c8a84cebd0
MXS-2304 Use get_integer() instead of config_get_integer()
2019-01-31 18:12:25 +02:00
d4674faa7d
Convert maxscale/query_classifier.h to .hh
...
The header was not merged with queryclassifier.hh since the latter
does not include the former.
2019-01-15 18:18:39 +02:00
6a23015b64
Convert avro headers to .hh
...
Required for converting maxscale/buffer.h.
2019-01-15 16:38:10 +02:00
46bea87ff6
MXS-2238: Fix reading of large Avro schemas
...
The schemas were read incorrectly which resulted in large schemas having
multiple newlines in them.
2019-01-06 13:05:42 +02:00
0927a0b938
MXS-2197 Remove most includes of maxscale/log.hh
...
All cc-files should include maxscale/ccdefs.hh, which includes
maxscale/log.hh. Consequently it need not be included again.
2018-12-10 13:07:23 +02:00
dc8c2f27f7
MXS-2197 Rename all module include files from .h to .hh
2018-12-10 13:00:46 +02:00
c0c9a9858d
MXS-2197 Rename maxscale/log.h to maxscale/log.hh
...
In files either include maxscale/log.hh or remove include entirelly
as maxscale/ccdefs.hh includes it.
2018-12-10 12:58:17 +02:00
1b5b789342
MXS-2208 Move trim-functions from maxscale to maxbase
...
log.h now includes string.hh, which is conceptually wrong, but
log.h will shortly disappear and be superceded by log.hh.
2018-12-10 12:50:07 +02:00
77477d9648
MXS-2196: Rename dcb_role_t to DCB::Role
2018-12-05 15:30:44 +02:00
bec9455a74
MXS-2205 Combine routingworker.h with routingworker.hh
2018-12-05 11:12:20 +02:00
9f721f725e
MXS-2205 Convert maxscale/protocol/mysql.h to .hh
2018-12-05 11:12:20 +02:00
ad12ff6d06
MXS-2196: Rename dcb.h to dcb.hh
2018-12-04 11:50:43 +02:00