|
ff109c6319
|
dcb->state set wheere missing or changed
|
2013-08-27 10:52:43 +02:00 |
|
|
d0d68a69ca
|
Added DCB_STATE_XXX in EPOLLIN/EPOLLOUT handlers and in accept()
|
2013-08-27 10:08:03 +02:00 |
|
|
49036894f5
|
In gw_connect_to_backend, first create socket, and establish socket connection, then in the end, dcb is added to epoll set.
|
2013-08-24 00:18:46 +03:00 |
|
|
df5f2f29b2
|
Removed undefined function declaration. Added trace and error log.
|
2013-08-23 23:25:12 +03:00 |
|
|
e345b23bcf
|
Merge
|
2013-08-23 22:47:16 +03:00 |
|
|
6f0ccd7b42
|
Added static simple_mutex_t epoll_wait_mutex, which is acquired and released in poll_waitevents.
|
2013-08-23 22:45:06 +03:00 |
|
|
0a182913a1
|
in gw_MySQLAccept moved authentication packet send before adding new dcb to epoll set.
|
2013-08-23 22:39:42 +03:00 |
|
|
0612dae890
|
Added error log printing.
|
2013-08-23 22:31:08 +03:00 |
|
|
c9ff06e0f5
|
Increased maximum path length from 180 to 255, and replaced sprintf with snprintf to prevent buffer overflow.
|
2013-08-23 22:27:40 +03:00 |
|
|
52c30c3e58
|
Removed dcb->state set after func.close()
|
2013-08-23 14:17:00 +02:00 |
|
|
68a5a389ee
|
Removed SS_DEBUG macros around necessary include directives.
|
2013-08-23 13:42:10 +03:00 |
|
|
481096ccef
|
Added trace log to newSession and to closeSession.
|
2013-08-22 10:46:14 +03:00 |
|
|
0401290021
|
Added spinlock ses_lock to struct SESSION to ensure that for each session closeSession is called only once.
closeSession is called from mysql_backend.c:gw_read_backend_event, and from dcb.c:dcb_close.
This is part of Bug #163.
|
2013-08-22 10:42:18 +03:00 |
|
|
b18d89300d
|
Bug 179
|
2013-08-22 00:26:24 +03:00 |
|
|
8dfd5de923
|
Fix merge
|
2013-08-22 00:01:44 +03:00 |
|
|
b6ba1954f5
|
Merge
|
2013-08-19 08:48:33 +03:00 |
|
|
9fe7a83675
|
Fixes for resource leaks foudn with Coverity.
Bug 173, 174, 175, 176 and 177
|
2013-08-21 17:26:55 +02:00 |
|
|
2135a76f7b
|
Bug 172 - Compile errors in Galera Monitor
|
2013-08-21 17:25:43 +02:00 |
|
|
1a18632920
|
Move fprintf to log
|
2013-08-21 16:35:01 +02:00 |
|
|
4e41fc49f5
|
Bug 166 - NULL pointer dereferenced if candidate server is NULL
|
2013-08-21 12:08:41 +02:00 |
|
|
2499378af9
|
Bug 160 - fixed freeing of username
|
2013-08-21 12:06:31 +02:00 |
|
|
73ffa5a648
|
dcb->data is allocated before poll_add_dcb in httpd_accept()
This will prevent dcb->data to be NULL with threads
|
2013-08-20 11:37:57 +02:00 |
|
|
21dabda848
|
Removed redundant log writings.
|
2013-08-20 10:49:35 +03:00 |
|
|
2ad0b12d79
|
Check dcb->status and set new state with writeqlock on.
|
2013-08-19 19:41:47 +03:00 |
|
|
c5ed473ab7
|
Check return value of ioctl in dcb_read and act accordingly.
|
2013-08-19 19:40:51 +03:00 |
|
|
ea79b38e4f
|
Check return value of dcb_read and if it failed, don't access head of linked list.
|
2013-08-19 19:39:47 +03:00 |
|
|
d6432b1750
|
Merge
|
2013-08-19 17:10:33 +03:00 |
|
|
45ea459e20
|
Check the return value of ioctl in dcb_read.
|
2013-08-19 17:09:33 +03:00 |
|
|
0021eddfee
|
Bug 154 - Added warning if options are set for the read/write splitter and updated example config file.
|
2013-08-19 15:53:08 +02:00 |
|
|
f750b8545a
|
Merge
|
2013-08-19 16:40:44 +03:00 |
|
|
c119f7b7b8
|
In dcb_close read and set dcb->state by holding dcb->writeqlock. This prevents simultaneous calls to closeSession.
|
2013-08-19 16:38:55 +03:00 |
|
|
b1c398e944
|
Bug 145 - Silently ignore missing .secrets file
|
2013-08-19 15:36:26 +02:00 |
|
|
05a3978442
|
Modified gw_read_client_event so that it only calls mysql_send_ok after new sessions has been set up and initialized.
|
2013-08-19 13:02:04 +03:00 |
|
|
24367fb400
|
Removed dcb->mutex since it didn't solve any problem.
|
2013-08-19 13:01:07 +03:00 |
|
|
97b3da1d79
|
Added simple_mutex_t dcb->mutex to DCB struct to protect processing of single dcb in poll.c:poll_waitevents. This is a coarse locking but seems to work with multiple threads at least with very simple load.
Added trace logging to many locations.
|
2013-08-16 23:52:10 +03:00 |
|
|
7c0ed171a0
|
Added trace log to event handling.
|
2013-08-15 22:45:11 +03:00 |
|
|
a1b05359ac
|
Added trace log where epoll_wait returns and to where read fomr/write to socket decicion is made.
|
2013-08-15 20:16:23 +03:00 |
|
|
90e6e11923
|
Added debug trace to socket read.
|
2013-08-15 11:13:34 +03:00 |
|
|
bed0206895
|
If config file is specified in command-line argument, then it won't be searched from anywhere else. Earlier command-line argument was ignored if MAXSCALE_HOME was set.
|
2013-08-14 15:42:35 +03:00 |
|
|
4051796653
|
Merge
|
2013-08-14 11:27:14 +03:00 |
|
|
eba81f0501
|
Corrected comparison between strcmp and 0 so that threads configuration parameter value becomes effective.
|
2013-08-14 11:25:03 +03:00 |
|
|
fbc311730c
|
Bug 124: Add log message when an invalid router option is supplied
|
2013-08-13 15:14:32 +02:00 |
|
|
2e11a26f41
|
Fixed bug on candidate selection. I misinterpreted count and n_connections variables. Thus, renamed count as current_connection_count to make it more understandable.
|
2013-08-13 12:12:19 +03:00 |
|
|
c1c8bf9fc5
|
Removed unnecessary loop of servers. Now we loop over all the servers, if running server is found and candidate is not set we set that server as candidate. If candidate is set and we find any that have fewer connections than our candidate server. If a server has less connections than the current candidate we mark this as the new candidate to connect to. If a server has the same number of connections currently as the candidate and has had less connections over time than the candidate it will also become the new candidate. This has the effect of spreading the connections over different servers during periods of very low load.
|
2013-08-13 11:55:34 +03:00 |
|
|
2d31d9ff5b
|
Initialized addr length indicator in telnetd_accept
|
2013-08-12 21:06:44 +03:00 |
|
|
249413b2c6
|
Freed thread structs.
|
2013-08-12 21:05:44 +03:00 |
|
|
c5fd94590c
|
Freed hashtable iterator to dcb_usersPrint.
|
2013-08-12 21:04:31 +03:00 |
|
|
64cb6eca56
|
mysql_library_end is not called if it wasn't initialized properly.
|
2013-08-12 13:12:23 +03:00 |
|
|
0c5125a44d
|
Typos
|
2013-08-12 13:11:05 +03:00 |
|
|
7522eb617d
|
Added enable/disable commands, now for log_witer only
|
2013-08-09 15:12:23 +02:00 |
|