644b139b00
Add support for 10.2 server capabilities
...
Added support for 10.2 server capabilities and cleaned up the server
capability flags.
2017-02-21 11:27:03 +02:00
a201379aad
Add files to devel package
...
The devel package was missing the protocol/mysql.h-file. Also,
added copyright and licence files and a devel-specific description.
The package target is now checked to be one of the recognized ones.
2017-02-20 17:44:22 +02:00
431cf885c3
Fix devel package
...
The devel package didn't install generated headers and the template
`header.h.in` files were installed instead.
2017-02-15 09:31:14 +02:00
49cc2b52e3
Merge branch '2.1.0' into 2.1
2017-02-15 08:44:55 +02:00
5648f708af
Update license to BSL 1.1
2017-02-14 21:42:28 +02:00
2a49cd6451
getCapabilities now get the instance as argument
...
Allows the capabilities to be different depending on how the
filter/router has been configured.
2017-02-14 13:55:22 +02:00
d2c3be8728
Fix compiler flag usage
...
The compiler flags overwrote the default values that CMake generates
instead of appending to them.
2017-02-10 17:19:46 +02:00
0200a353a1
Add more filter API documentation
...
The member functions are now documentated. The routeQuery and clientReply
entry points should be documented in more detail.
2017-02-10 13:49:18 +02:00
334e71b079
Initialize random number generator in main
...
The random number generator can be initialized when MaxScale's other
systems are being initialized. This removes the need to initialized it
when the function is used for the first time.
2017-02-10 13:02:39 +02:00
ce5cd69eb3
Remove unused locks and variables
...
Removed unused spinlocks from DCBs, sessions and the MySQL protocol
structs. They were used in a context where only one thread has access to
the structure.
Removed unused member variables from DCBs.
2017-02-08 15:31:17 +02:00
67888f3596
Merge branch '2.0' into 2.1.0
2017-02-08 09:27:00 +02:00
ea0b4d6b45
@file comment now consistently above includes
2017-02-01 13:07:13 +02:00
6b6fd83f26
Remove revision comments
2017-02-01 11:50:38 +02:00
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
50cffed5b2
Add readwritesplit options to diagnostic output
...
This helps detect the state of the loaded configuration.
2017-01-27 12:19:27 +02:00
3b716bc707
Split queuemanager.h to public and core headers
...
Almost everything was moved to core.
2017-01-26 17:05:17 +02:00
8b83bf834e
Clean up router.h
...
Nothing moved to core, just rename and cleanup.
2017-01-26 16:14:17 +02:00
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
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
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
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
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
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
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
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
fe1863bb49
Remove bitmask.h & .c, since the container is no longer used
2017-01-24 14:28:28 +02:00
b187afdcf4
Move config_runtime.h and externcmd.h to core
...
+ some cleanup
2017-01-24 13:05:21 +02:00
641896872e
Rename GW_AUTHENTICATOR and GW_BITMASK + cleanup
2017-01-24 10:03:36 +02:00
9430da94b9
Further cleanup of monitor headers
2017-01-23 14:16:34 +02:00
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
8cffa4ad58
Divide poll.h to core and public headers
...
Also some cleanup of other headers.
2017-01-20 17:15:27 +02:00
468411250d
Fix old header names in modules
...
Some of the modules still used the gw_authenticator.h name.
2017-01-20 16:57:04 +02:00
6dc6d6280a
Rename some .c-files, removing gw-prefix
...
May require reconfiguring the build. Some "gw":s are still
remaining, at least in test files.
2017-01-20 12:55:52 +02:00
6e38276a20
Rename files, removing "gw"-prefix
...
Also gwdirs.h.in -> paths.h.in
2017-01-20 12:55:52 +02:00
5a2a69b7be
Make enum parameter values unsigned 64bit integers
...
Making the enum value relatively large removes the need to expand it if a
module requires a significant amount of enumeration values.
2017-01-19 16:03:05 +02:00
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
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
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
00f77bbe69
Fix some leftovers from the SESSION->MXS_SESSION and related renames
...
Renames only.
2017-01-18 11:50:52 +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
ded9f668f1
QC: Parse statements in COM_STMT_PREPARE packets
2017-01-18 08:34:53 +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
0b6b9c3d81
Format core source code and headers
...
Formatted core source code and headers with Astyle.
2017-01-17 14:47:50 +02:00
8a95a0f045
Remove qc_get_prepare_operation
...
Since the whole preparable statement will be available, it is
superfluous to provide a function using which the operation of
the preparable statement can be obtained.
2017-01-17 10:10:38 +02:00
e349319400
Add qc_get_preparable_stmt
...
This function will return the preparable statement of a PREPARE
statement as a COM_QUERY GWBUF. That is, once obtained, the normal
query classifier functions can be used for obtaining information
about the preparable statement itself.
2017-01-17 10:10:38 +02:00