638c2250c9 
					 
					
						
						
							
							Fixed internal test suite.  
						
						 
						
						
						
						
					 
					
						2015-09-29 16:36:12 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						98ab399e6e 
					 
					
						
						
							
							Changed sprintf calls to snprintf calls and fixed compiler warnings.  
						
						 
						
						
						
						
					 
					
						2015-08-18 10:50:48 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						f095ec353c 
					 
					
						
						
							
							Fixed config file being installed into /usr/etc instead of /etc.  
						
						 
						
						
						
						
					 
					
						2015-07-10 21:31:33 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						0d85ae6603 
					 
					
						
						
							
							Changed data directory to /var/lib/maxscale.  
						
						 
						
						
						
						
					 
					
						2015-05-22 11:31:22 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						1cc6ced505 
					 
					
						
						
							
							Updated old references to MAXSCALE_HOME  
						
						 
						
						
						
						
					 
					
						2015-04-27 15:06:45 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						da406db292 
					 
					
						
						
							
							Changed install path to /usr/local/mariadb-maxscale  
						
						 
						
						
						
						
					 
					
						2015-03-23 20:12:56 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						7cfc1d3cc9 
					 
					
						
						
							
							Chaged MaxScale default installation directory to /usr/local/mariadb/maxscale and MaxAdmin password to 'mariadb'.  
						
						 
						
						
						
						
					 
					
						2015-03-23 14:53:31 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						f5d9c1e6df 
					 
					
						
						
							
							Fixes to Coverity defects.  
						
						 
						
						
						
						
					 
					
						2015-03-09 10:12:01 +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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						17f87e29af 
					 
					
						
						
							
							Fixes to some Coverity issues.  
						
						 
						
						
						
						
					 
					
						2014-11-05 11:57:42 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						b0683d9b4d 
					 
					
						
						
							
							Updated the licensing year from 2013 to 2013-2014  
						
						 
						
						
						
						
					 
					
						2014-10-01 14:37:12 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						f4e591e382 
					 
					
						
						
							
							Changed 'SkySQL Gateway' to 'MariaDB Corporation MaxScale'  
						
						 
						
						
						
						
					 
					
						2014-09-30 13:15:03 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						c344231f80 
					 
					
						
						
							
							Renamed all occurences of SkySQL to MariaDB Corporation  
						
						 
						
						
						
						
					 
					
						2014-09-30 13:02:10 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						3476558f52 
					 
					
						
						
							
							Fixed soem errors from a cppcheck run  
						
						 
						
						... 
						
						
						
						mbrampton@martin-office:~/Dropbox/development/skygit/MaxScale/server$ cppcheck -q core/*.c
[core/adminusers.c:302]: (error) Resource leak: fp_tmp
[core/filter.c:382]: (error) Uninitialized variable: me
[core/service.c:1071]: (error) Uninitialized variable: succp 
						
						
					 
					
						2014-08-22 14:25:27 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						d403018fd9 
					 
					
						
						
							
							Surrounded every log writing command with LOGIF macro, which tests if the given logfile id matches with those enabled. The comparison is done against local variable and expensive function call is avoided.  
						
						 
						
						
						
						
					 
					
						2013-12-12 16:14:33 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						701830f0ab 
					 
					
						
						
							
							Logging related (mostly) sanity checks and fixes.  
						
						 
						
						... 
						
						
						
						- Checked argument types and counts
- Removed trailing line feeds
- Removed thread ids from error logs (they are used in trace / debug log
- Added some state information to dcbs
- Added prefix 'Error' or 'Fatal' to error logs.
- Switches all error logs to use flushing log write. 
						
						
					 
					
						2013-09-30 11:14:36 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						ae12ef8f34 
					 
					
						
						
							
							Added call to close(fp_tmp)  
						
						 
						
						
						
						
					 
					
						2013-09-12 23:13:22 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						3841f95531 
					 
					
						
						
							
							In error cases, called close(fp).  
						
						 
						
						
						
						
					 
					
						2013-09-12 22:00:08 +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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						8449482279 
					 
					
						
						
							
							Fixed typo  
						
						 
						
						
						
						
					 
					
						2013-08-06 10:55:20 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						30456115f7 
					 
					
						
						
							
							Memory used by user structure was not initialized. Changed malloc to calloc.  
						
						 
						
						
						
						
					 
					
						2013-08-05 18:21:08 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						cae4d38a7e 
					 
					
						
						
							
							Removed unnecessary argument from log manager commands because it is not used and it is always NULL.  
						
						 
						
						
						
						
					 
					
						2013-08-04 23:30:47 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						f62cf1ea7e 
					 
					
						
						
							
							Added check if the last admin user is to be deleted, and if that's the case, prevent it and return with error message.  
						
						 
						
						
						
						
					 
					
						2013-08-04 23:02:29 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						ca3638ae2c 
					 
					
						
						
							
							Added 'remove user' to client API. New functions are  
						
						 
						
						... 
						
						
						
						debugcmd.c : telnetdRemoveUser
adminusers.c : admin_remove_user
Also renamed admin_test_user to admin_search_user . 
						
						
					 
					
						2013-08-02 23:03:43 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						a7c82310f9 
					 
					
						
						
							
							moving files to /server to make merge possible  
						
						 
						
						
						
						
					 
					
						2013-07-28 05:31:11 +00:00