992d6fb3bc
Fix to MXS-501: Tee filter and USE ... no longer hangs
...
Some of the data was not reset for the branch session when a query
was not duplicated which could lead to a hang. Also the COM_FIELD_LIST
duplicated to the branch session even though it doesn't change the
session state.
2015-12-10 09:56:06 +02:00
5ebdd6f47d
Fix signed/unsigned problem in tee.c
2015-12-10 08:41:20 +02:00
a663a8ec5c
Fix to MXS-500: Statement cloning is now properly handled
...
If a statement wasn't cloned for the Tee filter, the session would be closed
leading to a possible hang. Instead of closing the session when a statement
isn't cloned, it should not expect a response from that server for that statement.
2015-12-09 13:48:20 +02:00
231a620dc0
Remove >= 0 check from unsigned type.
2015-12-08 14:37:21 +02:00
1deea7f929
Remove unnecessary comparison.
...
It makes no sense to compare an unsigned integer for non-negativeness;
it won't ever be. router_instance.lastEventReceived is uint8_t.
On centos5 this causes a warning that thus ends the compilation.
2015-12-08 13:28:11 +02:00
edb3f3efd5
Fix coverity report of config.c
...
If pointer uninitialized there can be free of unallocated memory.
2015-12-08 10:28:31 +02:00
e3e8a59555
Allow hangup event also when EPOLLRDHUP is not available.
...
When generating a fake hangup event, EPOLLRDHUP is used if available,
otherwise EPOLLHUP. process_pollq(int) does the same thing both in the
case of EPOLLRDHUP and EPOLLHUP, so it seems this should work.
2015-12-08 10:14:10 +02:00
a71cab166b
Fix coverity report of gwbitmask.c
...
Buffer overrun. A byte is needed for the terminating null.
2015-12-08 09:33:04 +02:00
dbc321df9b
Fix coverity report of externcmd.c
...
Buffer overwrite.
2015-12-08 09:32:10 +02:00
f92b439ff1
Fix coverity report of log_manager.cc
...
- Too small array.
- Missing lock release.
2015-12-08 09:29:55 +02:00
89bdf179b7
Added newlines at the end of all files
...
Some files were missing newlines as the last character in the file, causing
errors to appear on some systems.
2015-12-08 09:23:55 +02:00
cc98fa6308
Fixed function prototype in maxadmin
...
The DoUsage function had a difference between the prototype and the real signature.
2015-12-07 17:54:53 +02:00
a67a637b11
Ensure that calculated length is an integer.
2015-12-07 15:12:32 +02:00
6870d77acb
Fix set_user prototype.
2015-12-07 14:14:42 +02:00
f62ff4c551
Fixed spelling mistake in usage output.
...
Path was spelled as apth.
2015-12-04 17:47:14 +02:00
350584ee28
Removed dpkg-shlibdeps part from DEB package building
...
The dpkg-shlibdebs was causing the Debian based systems to fail when the package
was being made. This makes the package builds work again.
2015-12-02 18:58:06 +02:00
d6afe70c6f
Fix to MXS-323: Routers properly handle client DCB errors
...
All routers now detect if a client DCB is passed to handleError and
take the appropriate action.
2015-12-02 18:01:14 +02:00
93f10fdb7b
Formatted query_classifier
...
Query_classifier formatted according to the style guide.
2015-12-02 13:36:51 +02:00
9da0c206bb
Added missing brackets
...
Some curly braces were missing from readconnroute and some function declarations
were misaligned.
2015-12-02 13:36:18 +02:00
45abfeec2c
Fix to MXS-494: Fixed readconnroute weight calculation
...
The calculation of weights used the actual amount of connections instead of
actual amount of connections + 1. This lead to the weight being effectively
ignored for servers with no connections.
2015-12-02 13:36:18 +02:00
91eba965fc
Formatted readconnroute
...
Formatted readconnroute files according to the style guide.
2015-12-02 13:36:18 +02:00
7119ed817d
Transaction safety default is off in binlog router
...
Transaction safety default is off in binlog router
2015-12-02 11:18:12 +01:00
d054cb1595
Correct logic errors in bitmask_set and extend initial/increment size to reduce likelihood of any risk of realloc failure.
2015-12-01 15:16:12 +00:00
5410f08578
Moved peristent connection parameters to the right section
...
The parameter documentation was in the listener section instead of the server
section.
2015-12-01 12:22:47 +02:00
2e127ef38e
Fix to MXS-429: Missing parameter no longer causes a crash
...
If a server is missing a weighting parameter the default weight will be used.
2015-12-01 12:22:47 +02:00
1c1d4b205a
Merge branch '1.2.1-binlog_router_trx' into develop
2015-12-01 09:37:47 +01:00
74bb291961
Reindent server/core/monitor.c
2015-12-01 09:40:07 +02:00
b2dd24ada3
Reindent server/core/utils.c
2015-12-01 09:32:31 +02:00
fbecf128dd
Reindent server/core/users.c
2015-12-01 09:29:52 +02:00
8bbc3e8086
Reindent server/core/thread.c
2015-12-01 09:29:03 +02:00
a95be21266
Reindent of server/core/spinlock.c
2015-12-01 09:28:19 +02:00
15df33a93f
Reindent server/core/session.c
2015-12-01 09:26:26 +02:00
8601068dc2
Reindent server/core/service.c
2015-11-30 21:25:10 +02:00
6367ac7148
Changed log level for up to date transition
...
Changed log level for up to date transition
2015-11-30 19:23:36 +01:00
ed06d4f14c
Reindent server/core/server.c
2015-11-30 19:47:29 +02:00
02da87f737
Fix to MXS-439: Weightby value of 0 no longer causes a crash
...
A weightby parameter with a value of 0 no longer causes SIGFPE and the
invalid weight value is set to the correct value of 1.
2015-11-30 19:06:04 +02:00
0aa38cad4c
Reindented server/core/resultset.c
2015-11-30 18:58:43 +02:00
6c401b9085
Reindent server/core/poll.c
2015-11-30 18:57:19 +02:00
c0615408aa
Reindented server/core/modutil.c
2015-11-30 18:53:42 +02:00
17eb80072f
Reindent server/core/secrets.c
2015-11-30 18:48:14 +02:00
233f50f3e6
Reindent server/core/random_jkiss.c
2015-11-30 16:04:18 +02:00
72dd159f98
Reindented server/core/memlog.c
2015-11-30 15:18:51 +02:00
60fb05ea40
Reindented server/core/load_utils.c
2015-11-30 15:17:36 +02:00
3189a47fc5
Reindented server/core/housekeeper.c
2015-11-30 15:16:44 +02:00
486f724dc1
Reindented server/core/hint.c
2015-11-30 14:10:15 +02:00
255a5b53c1
Reindented server/core/hashtable.c
2015-11-30 13:54:46 +02:00
26d1cf0c1f
Reindented server/core/gw_utils.c
2015-11-30 13:53:52 +02:00
d2aebe2bf0
Reindented server/core/gwdirs.c
2015-11-30 13:42:44 +02:00
9482ccb8c6
Reindented server/core/gwbitmask.c
2015-11-30 13:41:32 +02:00
ecb5ae528c
Reindented server/core/gateway.c
2015-11-30 13:40:56 +02:00