VilhoRaatikka
aaa727bcc2
Fix to bug #605 , http://bugs.mariadb.com/show_bug.cgi?id=605
...
String buffer allocation didn't allocate space for terminating char. It also assumed that character size may vary but the rest of the code didn't support multi-byte characters so I changed it consistently assume single-byte characters.
2014-11-02 22:11:28 +02:00
VilhoRaatikka
5a2d492fe8
Fixed use of uninitialized memory.
2014-10-31 23:47:33 +02:00
Markus Makela
be08f22ae1
Changed old references to SkySQL to MariaDB Corporation and Gateway to MaxScale.
2014-10-10 16:38:54 +03:00
Markus Makela
ebb3b52fdb
Included the my_config.h header before any system headers if mysql headers were used.
2014-10-10 12:30:21 +03:00
Markus Makela
9a6b884ff9
Merge branch 'query_classifier_test' into develop
2014-10-09 15:36:40 +03:00
Markus Makela
4bea21f464
Merge branch 'develop' into query_classifier_test
2014-10-09 15:34:10 +03:00
Markus Makela
3cd8e29c4c
Changed the way some CMake functions are used to support older versions of CMake.
2014-10-07 14:09:22 +03:00
Markus Makela
3d7c23cf0b
added more test cases
2014-10-06 14:03:13 +03:00
Markus Makela
b22ab90d66
Changed the way query classifier test is run.
...
Now the test is a single executable, which should make it easier to use with CMake.
2014-10-04 10:19:00 +03:00
Markus Makela
3b0e3d04dc
Merge branch 'develop' into query_classifier_test
...
Conflicts:
README
macros.cmake
2014-10-03 11:38:47 +03:00
VilhoRaatikka
bff2d794e0
Removed unnecessary linking commands to libmysqld.a
2014-10-01 13:29:26 +03:00
Markus Makela
52c0d0c768
Merge remote-tracking branch 'origin/develop' into header_rename
2014-10-01 05:24:02 +03:00
VilhoRaatikka
c055a3c0d2
Addition to fix of #557 , Removal of confusing and erroneous log message.
2014-09-30 17:04:43 +03:00
VilhoRaatikka
ca7ae0bb64
Fix to bug #557 , http://bugs.mariadb.com/show_bug.cgi?id=557
...
query_classifier.cc: added function for printing combined query type from a bit field.
query_classifier.h: identify query types SHOW DATABASE, and SHOW TABLES to make log entries more understandable.
mysql_common.c: moved some trace log commands to debug log.
readwritesplit.c: moved some trace logs to debug log, added trace log commands to gather routing, query type and session information to one log entry.
skygw_debug.h: added string macros for several query and hint types.
2014-09-30 16:31:30 +03:00
Markus Makela
f4e591e382
Changed 'SkySQL Gateway' to 'MariaDB Corporation MaxScale'
2014-09-30 13:15:03 +03:00
Markus Makela
c344231f80
Renamed all occurences of SkySQL to MariaDB Corporation
2014-09-30 13:02:10 +03:00
Markus Makela
25850c056f
Added tests to cmake
2014-09-25 10:14:42 +03:00
Markus Makela
0e23979609
Merge branch 'release-1.0beta-refresh' into cmake_build
2014-09-24 12:27:20 +03:00
Markus Makela
1cf3fa367c
test executable now works
2014-09-24 12:25:53 +03:00
VilhoRaatikka
2b147a9ea4
Monitors waited monitor check interval time before checking backend servers for the first time. Removed wait for the first check.
...
Added extra debugging to query_classifier to assist in issue resolution regarding to optimized MaxScale builds and pthread_mutex_lock in sql/sql_class.h
2014-09-24 12:03:04 +03:00
Markus Makela
b0514e9d9f
Merge branch 'cmake_build' into query_classifier_test
2014-09-22 14:42:12 +03:00
Markus Makela
07d1265acf
test implementation
2014-09-22 14:38:55 +03:00
Markus Makela
fc848665e5
Added variables for RabbitMQ headers and libraries, added more error checks.
...
modified: CMakeLists.txt
modified: README
modified: macros.cmake
modified: query_classifier/test/canonical_tests/CMakeLists.txt
modified: rabbitmq_consumer/CMakeLists.txt
modified: server/modules/filter/CMakeLists.txt
2014-09-22 13:14:53 +03:00
Markus Makela
8b1afbfe26
fixed tests not working with the normal 'make testall'
2014-09-16 20:02:28 +03:00
Markus Makela
77e0cccda6
Fix to query_classifier not being linked at all when using cmake
2014-09-16 15:41:46 +03:00
Markus Makela
0f5cfdbd1a
Added dependency checks, Debian packaging and fixes to various parts of the CMake build files.
2014-09-16 15:02:43 +03:00
Markus Makela
41226692ac
Merge branch 'release-1.0beta-refresh' into cmake_build
2014-09-16 12:11:17 +03:00
VilhoRaatikka
213a2dba9e
Merge branch 'release-1.0beta-refresh' of https://github.com/skysql/MaxScale into release-1.0beta-refresh
2014-09-15 19:11:39 +03:00
VilhoRaatikka
a41a8d6060
Fix to bug #543 , http://bugs.skysql.com/show_bug.cgi?id=543
...
All counters are now updated in routeQuery
Fix to bug #545 , http://bugs.skysql.com/show_bug.cgi?id=545
All sql variable and session modification statements, such as autocommit-, and set <db> commands are routed to all nodes.
2014-09-15 19:01:04 +03:00
Mark Riddoch
c8fc5b712b
Merge branch 'hholzgra-hartmut-gitignore' into release-1.0beta-refresh
2014-09-15 13:22:46 +01:00
Markus Makela
1f56db310d
Changed variable names to closer match their usage
...
Changed the default values to the same as in makefiles
Added configured versions of maxscale.conf and maxscale init.d script
2014-09-15 14:12:55 +03:00
Markus Makela
48012cd571
Added more build options and README changes
2014-09-15 11:48:40 +03:00
Markus Makela
0f07c9f08c
Added hint tests
...
Fixed readwritesplit tests looking for test input in the wrong directory
Updated the canonical query test expected output
2014-09-15 09:27:47 +03:00
Markus Makela
32b72ce474
more configuration options, README update and tests
2014-09-12 16:48:21 +03:00
Markus Makela
d8c34aabad
added log manager and query classifier tests
2014-09-12 06:06:11 +03:00
Markus Makela
b3ce971020
initial implementation of the CMake build system
2014-09-11 18:24:41 +03:00
VilhoRaatikka
f74493d922
server/modules/filter/Makefile: Fixed problem which prevented cleaning and compiling hintfilter library.
...
server/core/config.c: Removed unused if..else block from config_get_valint. Changed it also to return value which indicates whether the operation succeed. Added config_get_valbool similar to config_get_valint.
service.c:Added typelib-like struct and array of valid boolean values. Fixed parameter type test in service_set_param_value. Completed boolean type parameter handling.
hintparser.c:Fixed error message for non-maxscale hints.
readwritesplit.c:Added loading of configuration parameters from service to instance and from instance to each new session. Fixed routing condition in get_route_target. Modified get_route_target so that it takes also rw_read_sesvars_from_slaves and rw_write_sesvars_to_all as parameters.
skygw_types.h: added array size counting macro.
2014-09-08 21:44:23 +03:00
VilhoRaatikka
d799331c50
Added support for fine-grained query classification which is needed for configurable support for user- and system variable execution. This is partial implementation to task MAX-242. Tests passed with make -C server/modules/routing/readwritesplit/test but this is intermediate commit.
2014-09-05 22:50:35 +03:00
Markus Makela
aafc891c9a
Fixed canonical query test and mqfilter.c bugs
2014-09-05 10:58:54 +03:00
Markus Makela
2c470d7bf4
Fixed canonizer.c passing NULL to various functions.
2014-09-04 18:19:15 +03:00
VilhoRaatikka
36bf676a83
Fixed canonical test's makefile.
...
Added option for compiling MaxScale with RabbitMQ filter
2014-09-04 16:43:52 +03:00
Markus Makela
dfe2806e37
server/core/makefile: added -lmysqld to LDFLAGS so that the tests compile
...
query_classifier/test/canonical_tests/Makefile: Added hint.o to link flags
2014-09-04 15:44:00 +03:00
Markus Makela
c00e51fd00
Merge branch 'Z3' into Z3_rabbit_partial
...
Conflicts:
server/modules/routing/readwritesplit/readwritesplit.c
2014-09-04 13:52:12 +03:00
Markus Makela
4e11ea9b06
Merged some of the rabbitmq branch changes
...
query_classifier.cc: updated skygw_get_table_names to allow for partial or full table names
readwritesplit.c: transferred temporary table detection to separate functions
2014-09-04 13:31:20 +03:00
VilhoRaatikka
0630b2ff46
Merge branch 'Z3' of https://github.com/skysql/MaxScale into Z3
...
poll.c:poll_add_dcb: Addded EPOLLHUP back to flag set.
2014-09-04 12:29:06 +03:00
VilhoRaatikka
7fcf950f8f
Merge branch 'Z3' of https://github.com/skysql/MaxScale into Z3
...
Conflicts:
server/modules/routing/readwritesplit/readwritesplit.c
2014-09-03 22:54:32 +03:00
VilhoRaatikka
cda39a62fb
Fixes to
...
Includes imprvements to hints processing. If hint can't be followed query is routed possibly to slave, and eventually to master if other attempts fail.
2014-09-03 22:09:50 +03:00
VilhoRaatikka
5e5c59d322
Merge branch 'MAX-237' into Z3
2014-09-03 17:50:56 +03:00
Markus Makela
cc5922b218
Merge branch 'MAX-237' into Z3
2014-09-02 16:58:20 +03:00
Markus Makela
52f3adbf20
fixed temporary tables looking for database drops instead of table drops
2014-09-01 19:50:25 +03:00