| 
						
					 | 
					
						
						
							
						
						5507624326
					 | 
					
						
						
							
							Fixed typo'd sizeof.
						
						
						
						
						
						
					 | 
					
						2015-10-29 18:19:05 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						c29858d215
					 | 
					
						
						
							
							Added a definition for the size of the SSL error message buffer and changed all buffers to use it.
						
						
						
						
						
						
					 | 
					
						2015-10-29 16:39:38 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						f819f164b5
					 | 
					
						
						
							
							Cleaned up dcb_accept_SSL and added missing logging.
						
						
						
						
						
						
					 | 
					
						2015-10-29 16:39:38 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						482db5e84d
					 | 
					
						
						
							
							User friendly bit mask display for DCB print; monitors to work via inserting hangups instead of callbacks.
						
						
						
						
						
						
					 | 
					
						2015-10-17 20:00:05 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						57f5dd15bc
					 | 
					
						
						
							
							Resolve problem of lingering backend database processes; alter MySQL monitor to insert fake events when backend server unavailable; fix problem with count of current connections.
						
						
						
						
						
						
					 | 
					
						2015-10-16 17:55:07 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						d000af33f6
					 | 
					
						
						
							
							Remove obsolete function.
						
						
						
						
						
						
					 | 
					
						2015-10-13 16:21:17 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						efc0c7420e
					 | 
					
						
						
							
							Correct misplacement of decrementing current connections counter.
						
						
						
						
						
						
					 | 
					
						2015-10-13 16:19:24 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						5c985b42ba
					 | 
					
						
						
							
							Fix problem with persistent DCB disposal
						
						
						
						
						
						
					 | 
					
						2015-10-05 16:36:07 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						d582c5880c
					 | 
					
						
						
							
							Impose locking on dcb_call_foreach DCB callback mechanism. Add counters and maxima for DCBs and zombies to aid diagnosis.
						
						
						
						
						
						
					 | 
					
						2015-09-29 11:58:31 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						2231d0870c
					 | 
					
						
						
							
							Place checks in callback routines because DCB will not always contain a reference to a router session, and the associated data will be invalid in this case.
						
						
						
						
						
						
					 | 
					
						2015-09-25 12:17:18 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						2dfb9e3c11
					 | 
					
						
						
							
							Merge branch 'develop' into MXS-329
						
						
						
						
						
						
					 | 
					
						2015-09-24 17:59:36 +03:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						89667294b3
					 | 
					
						
						
							
							Fix exceptional cases in DCB dcb_call_callback and in MySQL backend gw_error_backend_event - close DCB and return.
						
						
						
						
						
						
					 | 
					
						2015-09-24 07:39:47 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						3b19acd1de
					 | 
					
						
						
							
							Write queue emptied in dcb_final_free.
						
						
						
						
						
						
						
						NOTE: Invalid indentation for reduced conflicts with MXS-329. 
						
						
					 | 
					
						2015-09-23 15:16:19 +03:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						7aa36b77ea
					 | 
					
						
						
							
							Guarantee router session is present for call to clientReply; properly free callbacks; attempt to set all necessary values for dbusers; do more to ensure buffers freed.
						
						
						
						
						
						
					 | 
					
						2015-09-21 14:25:12 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						88716c35fb
					 | 
					
						
						
							
							Various changes to block loopholes in different cases and tidy up.
						
						
						
						
						
						
					 | 
					
						2015-09-21 09:23:22 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						b8af047a25
					 | 
					
						
						
							
							Remove excessively tight conditions for selecting persistent connections, add more information to debug output when connection is rejected.
						
						
						
						
						
						
					 | 
					
						2015-09-18 11:03:23 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						31c6666278
					 | 
					
						
						
							
							Ensure DCB for closing session does not become persistent; remove bref_was_not_in_use.
						
						
						
						
						
						
					 | 
					
						2015-09-17 14:38:56 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						357c4bcae5
					 | 
					
						
						
							
							Add to or take from persistent pool only if server is running; add conditions to DCB close in read-write handleError to check backend reference was in use.
						
						
						
						
						
						
					 | 
					
						2015-09-17 12:53:59 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						fe9babe9ec
					 | 
					
						
						
							
							Cleaned up code.
						
						
						
						
						
						
					 | 
					
						2015-09-16 10:22:29 +03:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						5d1895561c
					 | 
					
						
						
							
							Moved parts of dcb_read_SSL to separate functions.
						
						
						
						
						
						
					 | 
					
						2015-09-14 09:54:42 +03:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						96fdb5eb8d
					 | 
					
						
						
							
							Fixed SSL write failures not being handled properly.
						
						
						
						
						
						
					 | 
					
						2015-09-10 18:36:59 +03:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						cfeaf7d6e9
					 | 
					
						
						
							
							Merge remote-tracking branch 'origin/develop' into MXS-329
						
						
						
						
						
						
						
						Conflicts:
	server/core/session.c 
						
						
					 | 
					
						2015-09-10 13:07:27 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						f6916a23bd
					 | 
					
						
						
							
							Move responsibility for closing DCB on error to router error handling. Check that routers remove or disable links to closed DCB.
						
						
						
						
						
						
					 | 
					
						2015-09-09 09:33:00 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						160bbb70ee
					 | 
					
						
						
							
							MXS-251: strerror
						
						
						
						
						
						
						
						Replaces all calls to strerror with calls to strerror_r. The former
is non-thread safe while the latter is. 
						
						
					 | 
					
						2015-09-05 15:52:13 +03:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						42c9532a56
					 | 
					
						
						
							
							Simplify logic and reverse list to kill, so as to cancel out the reversal in the original zombie list.  Probably not significant, but might be helpful.
						
						
						
						
						
						
					 | 
					
						2015-09-05 00:32:29 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						d3cdaa4346
					 | 
					
						
						
							
							No need to process zombie victims if queue is empty.
						
						
						
						
						
						
					 | 
					
						2015-09-04 18:09:43 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						d74990833b
					 | 
					
						
						
							
							Move capture of user name for persistent connections; expand error message in mysql client to give more information.
						
						
						
						
						
						
					 | 
					
						2015-09-01 09:59:34 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						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 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						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 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						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 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						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 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						7410b3dfbd
					 | 
					
						
						
							
							Cleaned up code.
						
						
						
						
						
						
					 | 
					
						2015-08-21 18:13:45 +03:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						4e5968ee15
					 | 
					
						
						
							
							Reverted changed which add a return value to dcb_log_write_failure
						
						
						
						
						
						
					 | 
					
						2015-08-18 13:12:59 +03:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						6a92a419ff
					 | 
					
						
						
							
							Remove function declaration - moved to header. Implement spin_reporter in server.c, required for correct compilation when SPINLOCK_PROFILE is defined true.
						
						
						
						
						
						
					 | 
					
						2015-07-27 09:01:20 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						7363343499
					 | 
					
						
						
							
							Fixed dcb_write failing when the cause was EAGAIN or EWOULDBLOCK.
						
						
						
						
						
						
					 | 
					
						2015-07-22 15:34:51 +03:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						78e046c9f8
					 | 
					
						
						
							
							Fix typo; fix double count decrement.
						
						
						
						
						
						
					 | 
					
						2015-07-21 11:00:47 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						c33f1199d9
					 | 
					
						
						
							
							Fix lack of declaration for session_unlink_dcb; restructure dcb closedown logic to fix counting problem and reduce code.
						
						
						
						
						
						
					 | 
					
						2015-07-21 09:54:01 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						3c999cef8d
					 | 
					
						
						
							
							Added missing subtraction of current number of connections.
						
						
						
						
						
						
					 | 
					
						2015-07-20 16:39:37 +03:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						a53c91c587
					 | 
					
						
						
							
							Fixed compiler warnings.
						
						
						
						
						
						
					 | 
					
						2015-07-20 16:29:36 +03:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						89524b1427
					 | 
					
						
						
							
							Further tidying in dcb_write
						
						
						
						
						
						
					 | 
					
						2015-07-20 14:19:00 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						bb1f26eda5
					 | 
					
						
						
							
							Fixes for maintainability of dcb.c; error in persistent connections.
						
						
						
						
						
						
					 | 
					
						2015-07-19 16:48:24 +01:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 |