fdfbf3e133
Update 2.4.3 change date
2019-11-05 12:21:00 +02:00
861e27eb00
Merge branch '2.3' into 2.4
2019-10-29 14:04:31 +02:00
df6c56e7ca
Update 2.3.13 Change Date
2019-10-29 12:51:31 +02:00
639b0af6aa
MXS-2734: Check preferred server on table conflict
...
If the schemarouter detects a table conflict in a query and one of the
servers is the preferred one, don't log an error.
2019-10-29 11:34:09 +02:00
9ce788ff0b
MXS-2690: Fix duplicate database detection
...
Empty duplicate databases are now correctly detected since the results
will always return the database name combined with a trailing period.
2019-09-21 21:16:55 +03:00
0bb53bf411
Merge branch '2.3' into 2.4
2019-08-29 02:00:16 +03:00
7a1abc26d8
MXS-2631 Fix the ignoring of the system tables
2019-08-29 01:00:49 +03:00
a9b01ff4cc
Merge branch '2.3' into 2.4
2019-07-28 21:43:58 +03:00
12bd26398f
MXS-2486: Add missing schemarouter capabilities
...
The capabilities that the schemarouter declared were missing the
RCAP_TYPE_PACKET_OUTPUT which caused partial packets to be returned to it.
2019-07-23 09:57:53 +03:00
fbeb5d9c84
Always ignore server-internal databases
...
The mysql, information_schema and performance_schema databases should
always be ignored if found on multiple servers.
2019-07-23 09:38:29 +03:00
0ba779d5a2
Update 2.4.0 Change Date
2019-06-25 10:11:55 +03:00
4efa9dbeea
Remove maxscale/alloc.h
...
The remaining contents were moved to maxbase/alloc.h.
2019-06-10 14:11:25 +03:00
7893c120a9
MXS-2477 Change schemarouter ignore_databases parameters to ignore_tables
...
With the table level sharding parameter is used to ignore tables not
databases.
2019-05-21 13:48:17 +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
aa3057695b
MXS-2329 Use durations in schema router
2019-04-30 13:02:53 +03:00
841bdf4d0f
Merge branch '2.3' into develop
2019-03-28 15:33:09 +02:00
6bc2c54081
Merge commit 'a78f0fbe2537542dc7f3f0dd8b19b93ac8d9d7f8' into develop
2019-03-28 13:53:40 +02:00
c4b82b7d83
MXS-2359 Route statements with database but no table dependence
...
Queries such as SHOW TABLES FROM db1 are now routed to the backend with db1.
This gives the correct result as long as db1 is not sharded to multiple
backends.
2019-03-27 13:46:36 +02:00
ee88180c54
MXS-2409 Check that prepared statement exists
...
If the PREPARE is malformed, the extracted statement is null.
2019-03-27 13:46:36 +02:00
c6272594d6
MXS-2359 Remove special handling for SHOW TABLES
...
The code only handled the basic version of the command, returning incorrect
results if modifiers were used. The code is now removed, causing the command
to be routed to the backend of the current database. This will give correct
results as long as that backend contains all the tables of the database e.g.
no table sharding.
2019-03-27 10:30:29 +02:00
95317725ce
Merge branch '2.3' into develop
2019-03-07 16:21:03 +02:00
4208dff2e6
MXS-2337 Schemarouter responds correctly to SHOW TABLES
...
The router now handles the query similarly to a "SHOW TABLES FROM X"
with the current db assigned to X.
2019-03-07 13:07:20 +02:00
900cbb4cff
MXS-2304 Move last config_get_x() functions inside class
2019-03-04 12:27:36 +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
3eb7d89c80
MXS-2304 Use get_service() and get_server()
2019-02-01 17:31:41 +02:00
b357717149
MXS-2304 Use get_bool() instead of config_get_bool()
2019-02-01 17:18:49 +02:00
c8a84cebd0
MXS-2304 Use get_integer() instead of config_get_integer()
2019-01-31 18:12:25 +02:00
c2d3bdf7ef
MXS-2273 Make schemarouter honour BEING_DRAINED bit
...
The schema router now deals with the being drained bit the same way
it deals with the maintenance bit, that is, a server being drained will
simply be ignored.
TODO: This behaviour needs to be document.
TODO: It seems the schema router simply ignores the maintenance bit
once a connection has been establisdhed.
2019-01-30 12:16:57 +02:00
3b55893a20
Combine maxscale/buffer.h with maxscale/buffer.hh
2019-01-17 12:37:40 +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
1c647f3753
MXS-2220 Move most remaining functions inside class
...
Most of the ones still remaining outside are special cases.
Also, removed locking from status manipulation functions as it
has not been required for quite some time.
2019-01-08 15:15:34 +02:00
8b53e30678
MXS-2220 Move server status functions inside class
2019-01-08 15:12:47 +02:00
49c1afcb1b
Merge branch '2.3' into develop
2019-01-08 13:17:27 +02:00
63358fb4c1
Add correct operator to comparison
...
The clause had a bitwise AND. The end result is likely the same.
2019-01-08 10:18:15 +02:00
40485d746c
MXS-2220 Change server name to constant string
2019-01-03 12:13:15 +02:00
4ab25bcd1c
Fix schemarouter duplicate database detection
...
The detection wouldn't work if the database had no tables.
2018-12-28 11:33:43 +02:00
20fe9b9dca
MXS-2196: Rename session states
...
Minor renaming of the session state enum values. Also exposed the session
state stringification function in the public header and removed the
stringification macro.
2018-12-13 13:27:45 +02:00
e979a73cc0
Remove the STRSRVSTATUS macro
...
Use server_status() instead.
2018-12-10 15:55:07 +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
77477d9648
MXS-2196: Rename dcb_role_t to DCB::Role
2018-12-05 15:30:44 +02:00
9f721f725e
MXS-2205 Convert maxscale/protocol/mysql.h to .hh
2018-12-05 11:12:20 +02:00
d96a7dedc5
MXS-2205 Convert maxscale/poll.h to .hh
2018-12-04 14:51:02 +02:00
756593a718
MXS-2205 Combine maxscale/router.h with maxscale/router.hh
2018-12-03 15:28:06 +02:00
97bb7e7e1a
MXS-2205 Combine maxscale/modutil.h with maxscale/modutil.hh
2018-12-03 15:28:06 +02:00
77585bdb8c
MXS-2197: Make config.h and service.h C++ headers
...
This is the first step into converting the other headers into C++.
2018-11-30 12:15:57 +02:00
9278da1f54
MXS-2067: Remove spinlock.h
...
Removed the spinlock.h header and replaced with plain pthread types and
functions.
2018-09-28 12:18:24 +03:00
ab4f870927
MXS-2067: Replace most SPINLOCKs
...
Replaced SPINLOCK with std::mutex where possible, leaving out the more
complex cases. The big offenders remaining are the binlogrouter and the
gateway.cc OpenSSL locks.
2018-09-28 12:18:23 +03:00
50451166bb
MXS-2067: Remove spinlock.hh
...
Replaced the C++ versions with standard library mutexes.
2018-09-28 12:18:23 +03:00
548d121699
MXS-2068: Use RWBackend in schemarouter
...
The schemarouter now uses the RWBackend to track the response states. This
fixes the debug assertions that happened with the mxs1113_schemarouter_ps
test.
2018-09-26 09:43:26 +03:00