Commit Graph

3796 Commits

Author SHA1 Message Date
a711b25fec Improve user name setting in DCB for persistent connections and to fix bug; change name of session_alloc_dummy to session_set_dummy to be more informative. 2015-08-28 18:20:32 +01:00
f1c3b65b15 Fixed mistake. 2015-08-28 19:52:02 +03:00
d29c5909a6 Properly close the branch session of the tee filter. 2015-08-28 19:50:29 +03:00
5338318900 Improve error message when DCB has no session pointer in poll loop. 2015-08-28 17:25:41 +01:00
068ec77d05 Fix bugs. 2015-08-28 16:44:40 +01:00
753746f5c5 Fix mistakes 2015-08-28 16:12:36 +01:00
9c5f622481 Additional spinlock in random_jkiss. Initial attempt at implementing dummy sessions to provide total consistency - used in mysql_client in relation to authentication - a single static dummy session is used and linked from the client dcb when authentication is not yet complete. 2015-08-28 15:30:06 +01:00
0d62f52812 Ensure thread safe through use of spinlock; add further comments. 2015-08-28 09:12:41 +01:00
c01aa6952e Fix initialisation problem; put all statements on separate lines. 2015-08-26 17:16:10 +01:00
57b82dcedb Correct initialisation logic. 2015-08-26 16:36:08 +01:00
70d82fd45e Fixed compilation problems. 2015-08-26 18:33:46 +03:00
b66bcbd36c Correct small mistake 2015-08-26 16:30:08 +01:00
4ec5e3b69d Change header random.h to random_jkiss.h 2015-08-26 16:18:37 +01:00
820bb4ea00 Avoid name clash - change random to random_jkiss 2015-08-26 16:18:08 +01:00
162db13523 Add actual random number generation code. 2015-08-26 15:43:43 +01:00
1f6b544f33 Tidy dcb_free (prefer use of dcb_close) and remove from test code; add good random number generator. 2015-08-26 15:43:21 +01:00
72b301785b Complete implementation of error logging when no session pointer in DCB. 2015-08-25 12:25:36 +01:00
e7c74c39cf Fix bug in persistent connections; add code to check for DCB session pointer in poll loop before invoking processing. 2015-08-25 12:19:02 +01:00
8425deab18 Fixed bugs by moving setting of thread bit mask from polling to DCB closing, fixed other mistakes. 2015-08-25 11:46:25 +01:00
ea09918312 Fix mistakes. 2015-08-25 09:54:56 +01:00
3dd20cb9ec Acquire user for DCB from DCB session sooner, needed for persistent connection handling. 2015-08-25 09:53:01 +01:00
980b56e7fa Fix stupid extra } 2015-08-25 09:33:40 +01:00
d27ffcf06a Fix mistake in debug STRDCBSTATE() 2015-08-25 09:31:54 +01:00
f18f233de2 Try to resolve unexpected compiler errors 2015-08-25 09:23:24 +01:00
12922225b8 Remove redundant DCB state DCB_STATE_FREED, remove obsolete assertion from poll.c, tidy up. 2015-08-25 09:11:44 +01:00
ae669c6f88 Fix mistake 2015-08-24 16:29:41 +01:00
65c42e2d80 Move removal of closing DCB from poll list to the kill zombies processing, rather than immediately on close; modify persistent connections to obtain candidates for the pool from the kill zombies processing to be sure that they really are finished all previous processing. 2015-08-24 16:19:25 +01:00
37ac158791 Changes to try to eliminate setting dcb->session to NULL with risk of crashing system. 2015-08-24 12:12:43 +01:00
5e2e2585ad Fix mistakes. 2015-08-23 16:43:07 +01:00
1baf693b02 First changes for lazy session creation. 2015-08-23 16:39:08 +01:00
087c2fca46 Block out new test for the time being. 2015-08-23 10:09:42 +01:00
6b2d90fc50 Add check so DCB can't be added to poll list without a linked session; small safety improvement in session; tidying. 2015-08-23 09:34:26 +01:00
53c3cc4b41 Fix mistake; tidy format. 2015-08-22 19:14:40 +01:00
cb74b52601 Merge branch 'dcb_code_revert' into develop 2015-08-21 18:14:10 +03:00
7410b3dfbd Cleaned up code. 2015-08-21 18:13:45 +03:00
f014598d39 Added NULL checks. 2015-08-21 17:42:03 +03:00
8a362d6668 Fixed memory leaks in maxinfo.c and httpd.c 2015-08-21 08:08:45 +03:00
c001e030af Fixed available_when_donor not working properly. 2015-08-20 20:33:46 +03:00
d1bf6bb303 Merge branch 'develop' into dcb_code_revert 2015-08-20 12:06:14 +03:00
80691ab080 Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop 2015-08-20 09:35:06 +03:00
9a6e3a9a86 Fix to Coverity defect. 2015-08-20 09:34:52 +03:00
139d4829a9 Further refinement of poll_remove_dcb function to ensure proper delayed release of a DCB that may be in the poll list and should only be destroyed after all threads have completed any operations on it; add comments describing implementation limitations in the bitmask processing. 2015-08-20 06:58:05 +01:00
367965f180 Merge branch 'MXS-270' into develop 2015-08-19 20:02:23 +03:00
38f78c7239 Fix possible threading problem. 2015-08-19 17:23:49 +01:00
2d9814e0f3 Fix to MXS-270: https://mariadb.atlassian.net/browse/MXS-270
Prepared statement query responses in multiple buffers are now handled properly.
2015-08-19 17:48:24 +03:00
895989446d MXS-224: Added SQL commands to the log message at slave disconnect time
MXS-224: Added SQL commands to the log message at slave disconnect time
2015-08-19 12:04:15 +02:00
3f26c306c5 Added more function parameter checks. 2015-08-18 22:19:26 +03:00
4e5968ee15 Reverted changed which add a return value to dcb_log_write_failure 2015-08-18 13:12:59 +03:00
98ab399e6e Changed sprintf calls to snprintf calls and fixed compiler warnings. 2015-08-18 10:50:48 +03:00
501ea8ffc2 Removed a debug assertion which was triggered with a valid query and added more logging. 2015-08-17 22:42:04 +03:00