2ff3939ba2
Active databases are only updated if they are found in the router's hashtable.
2014-12-08 16:35:47 +02:00
e76215bf07
Added detection of COM_INIT_DB
2014-12-08 11:15:10 +02:00
4c1ed65617
Added dbshard template to MaxScale_template.cnf
...
Added NULL-check to createInstance to avoid NULL-pointer reference if user/pwd is missing from config.
Removed unnecessary code, added error messages, fixed intendation.
2014-12-07 23:34:47 +02:00
0348df5147
Fixed databases being queried without a username or password and ignored the default databases when checking for shards.
2014-12-07 13:16:53 +02:00
15a96f037d
Merge remote-tracking branch 'origin/MAX-324' into MAX-324
...
Conflicts:
server/modules/routing/dbshard/dbshard.c
2014-12-07 06:11:24 +02:00
68fc849c6e
query_classifier.cc:cleaned up some intendentions and brackets.
...
dbshard.h:removed unnecessary code
dbshard.c:removed unnecessary code, cleaned up a bit and made some required changes
readwritesplit.c:removed two unnecessary variable assignments.
2014-12-07 00:34:23 +02:00
a580799eb2
Added messages about missing usernames and passwords for servers.
2014-12-07 00:07:58 +02:00
94b6fc8ff1
Merge branch 'MAX-324' of https://github.com/mariadb-corporation/MaxScale into MAX-324
2014-12-06 12:48:37 +02:00
06578c95a5
Updates to dbshard router:
...
Added a parsing function to query classifier that returns an array of database names the query uses.
Added a check if the query targets a sharded database. If so, a hint is added that routes the query to the named server.
2014-12-06 11:30:07 +02:00
7079cb4749
Cleaned a bit
2014-12-03 10:35:34 +02:00
b57771f46c
Merge branch 'release-1.0GA' into MAX-324
2014-12-03 09:41:13 +02:00
aa8350ef8f
client's flags copied among known capabilities
...
Copy client's flags to backend but with the known capabilities mask
2014-12-02 18:47:25 +01:00
ad2ca62248
Log the start of the lsitener to the message log in line with other protocols
2014-12-02 13:39:46 +00:00
ed8404d9c7
Fixed some of compiler errors
2014-12-02 11:05:14 +02:00
83477042a1
Merge branch 'MAX-324' of https://github.com/mariadb-corporation/MaxScale into MAX-324
2014-12-02 10:37:53 +02:00
ef4f9aac4f
Merge branch 'MAX-324' of https://github.com/mariadb-corporation/MaxScale into MAX-324
...
Conflicts:
server/modules/include/dbshard.h
server/modules/routing/dbshard/dbshard.c
2014-12-01 19:34:20 +02:00
dd600d025a
Added dbshard.h
2014-12-01 15:53:48 +02:00
a78ac19a87
Added createInstance and newSession, cleaned up things related to other routers.
2014-12-01 15:52:00 +02:00
1135b2c23f
Removed 'information_schema' from the sharding checks and set the default weights of the backend to 1.
2014-12-01 15:02:44 +02:00
66164aa664
Added functions that query backend servers for database names
2014-12-01 14:27:33 +02:00
43d348e3ac
Place holders for dbshard.c
2014-12-01 09:58:46 +02:00
1bfedbee1d
Fix to bug #629 , http://bugs.skysql.com/show_bug.cgi?id=629
...
Master was selected for routing target even there was a slave available.
2014-11-28 14:17:35 +02:00
9aa828cd9b
Added debug assertions to catch wrong DCB usage
2014-11-27 22:04:34 +02:00
3941f5c31d
Added debug trace
2014-11-27 19:48:27 +02:00
3e18e091c1
Fixed unreported bug in log_manager where a terminating character was added in the middle of log message.
2014-11-27 16:53:50 +02:00
83f7203213
Fix to unreported bug which printed result of getsockopt even in case when there was no socket error.
2014-11-27 15:37:13 +02:00
93876f565d
Log message fixed
...
Log message fixed
2014-11-21 11:57:57 +01:00
e5b041ea93
Reset log counter for members in the cluster
...
Reset log counter for members in the cluster
2014-11-21 11:31:01 +01:00
fc5647282f
New logging features for galera mon
...
New logging features for galera mon
2014-11-20 17:52:27 +01:00
c62a89f5c8
Fixed typos and added function headers
...
Fixed typos and added function headers
2014-11-20 17:40:33 +01:00
1ac4b0bba7
Monitored server status change logged once
...
Monitored server status change logged once.
Available / not available master is logged
2014-11-20 16:47:17 +01:00
511d93f266
Monitored server status change logged in debug log
...
Monitored server status change is now logged in debug log
2014-11-20 12:18:33 +01:00
a65b9fa8b3
Fixes to Coverity defects: 72662 82143 82144 82145 82348 82349
2014-11-20 06:44:43 +02:00
0e6fa09d7e
Fixes for Coverity issues
2014-11-19 16:01:38 +00:00
2e3fb9cbd3
Changed the 'seslog' command to 'sessionlog' in the telnet client.
2014-11-19 16:55:18 +02:00
2e456c7348
Changed the order of help messages about seslog command
2014-11-19 15:22:12 +02:00
e67ded72a0
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
2014-11-19 12:07:13 +00:00
d3c8770852
Merge branch 'blr' into develop
...
Conflicts:
client/maxadmin.c
server/core/CMakeLists.txt
server/core/dcb.c
server/core/gateway.c
server/core/poll.c
server/core/test/CMakeLists.txt
server/core/test/makefile
server/include/poll.h
server/modules/routing/debugcmd.c
2014-11-19 12:00:55 +00:00
2c87edfe27
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
2014-11-19 13:28:40 +02:00
9cc0e1316c
Fix to #594 , http://bugs.skysql.com/show_bug.cgi?id=594
...
Changes to readwritesplit.c:get_dcb caused regression
2014-11-19 13:27:43 +02:00
c3439027d4
Fixed a missing session list iteration from debugcmd.c
2014-11-19 13:07:37 +02:00
6cbbf7260f
Improved logging and diagnostics
2014-11-19 10:49:40 +00:00
2556097a98
Added commands to debugcmd.c that enable and disable logs for a single session.
...
Added the session id to dprintAllSessions and dprintSession output.
2014-11-19 12:25:33 +02:00
a65d8cd525
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
2014-11-19 09:38:22 +02:00
98390e89cc
Added dummy cli commands that would enable and disable session logs.
2014-11-19 09:37:24 +02:00
bb39267126
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
2014-11-19 00:15:21 +02:00
fd11e6a7f5
Session-specific logging. Added functions
...
void session_enable_log(SESSION* ses, logfile_id_t id)
and
void session_disable_log(SESSION* ses, logfile_id_t id)
Which switch specific log type on/off if the log type in question is not generally enabled.
Each thread carries a thread-specific struct log_info_t which includes members for current session id and bitfield for enabled log types for the current session. That information is checked before actual log write functions are called.
Each file where session-specific logging is used, must include the following exports:
/** Defined in log_manager.cc */
extern int lm_enabled_logfiles_bitmask;
extern size_t log_ses_count[];
extern __thread log_info_t tls_log_info;
2014-11-19 00:08:59 +02:00
fc04087ab4
Valgrind tests completed
...
Valgrind tests completed, message removed
2014-11-18 13:19:38 +01:00
91f65072a2
Slave status removed of 1 server only
...
Slave status removed of 1 server only
2014-11-18 13:07:49 +01:00
e2fd2c422e
One server only in MySQL monitor config
...
One server only in MySQL monitor: it’s the Master.
Only one server in mysql monitor and in router sections
2014-11-18 11:25:21 +01:00