8d6c583a1c
Added a check for duplicate sections in the configuration file.
2015-10-29 16:11:08 +02:00
9064212353
Fixed queries without assignment operators failing to be properly canonized.
2015-10-27 14:20:43 +02: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
78eab19c62
Fixed compiler warnings.
2015-07-14 17:13:09 +03:00
3992f262ca
Fixed Coverity defects
2015-07-14 16:17:50 +03:00
ba417ef633
Merge remote-tracking branch 'origin/develop' into MXS-122
...
Conflicts:
server/core/dcb.c
2015-07-08 14:54:22 +01:00
e5d9abbdcb
Fixes to Coverity defects.
2015-06-25 06:01:33 +03:00
09fdb0a2c2
Hopefully final tidy up.
2015-06-23 14:58:53 +01:00
4417f2bbf4
Moved atomic to its own static library.
2015-06-17 16:50:15 +03:00
152f9bbc4a
Merge remote-tracking branch 'origin/develop' into MXS-122
2015-06-09 13:51:55 +01:00
fe2f8e70d1
Add CHK_SERVER capability and test in dcb_persistent_clean_count
2015-06-03 15:39:06 +01:00
455b132a22
Fixed a non-static variable causing multiple declarations when FAKE_CODE was defined
2015-05-13 22:46:05 +03:00
492918c72c
Use common code for atomic_add().
2015-05-12 16:50:37 +01:00
cf23baaa6b
Fixed cyclic dependencies of log_manager and utils.
2015-05-09 11:10:27 +03:00
fc7072786b
Fixed null pointer dereferences in maxkeys and maxpasswd.
2015-05-06 16:32:49 +03:00
3bd03fbe09
Merge branch 'logmanager_stdout' into develop
2015-05-04 11:03:24 +03:00
d545150ceb
Fix to MXS-70: https://mariadb.atlassian.net/browse/MXS-70
...
Added assert information to error log.
2015-05-02 05:51:25 +03:00
e0feeac9e6
Added missing SESSION_STATE_ROUTER_READY to STRSESSIONSTATE macro.
2015-04-30 21:41:57 +03:00
7c988c4fd5
Removed stdout specific functions in skygw_utils and moved the logic to log_manager instead.
2015-04-30 04:26:48 +03:00
47e5b12eb8
Added a function that frees the skygw_file_t memory but doesn't close it.
2015-04-29 18:25:35 +03:00
9ce225c2cb
Added log manager initialization flag that prints all logs to stdout.
2015-04-29 11:20:40 +03:00
1b3af7d61f
Fixes to Coverity defects.
2015-04-16 19:41:49 +03:00
051d891680
Added utility functions to skygw_utils and cleaned up tee filter.
2015-04-15 12:42:28 +03:00
282f66f9fd
Merge branch 'develop' into MAX-324
...
Conflicts:
utils/skygw_utils.cc
2015-03-06 17:07:39 +02:00
8c3409cf32
Fix to MXS-3: https://mariadb.atlassian.net/browse/MXS-3
...
Added the GNU specific code to skygw_utils.cc. This is a temporary fix and should be revisited at some point.
2015-03-06 12:39:42 +02:00
880adca73e
Merge branch 'develop' into MAX-324
2015-03-05 10:45:48 +02:00
9ec31d029e
Changed gettimeofday to time(NULL) in low precision logging.
2015-03-02 10:32:20 +02:00
ad49c5f402
Added optional millisecond precision to logfiles and created the changelog document.
2015-02-24 18:10:16 +02:00
fc969acc73
Added optional stripping of escape characters from database names when laoding users.
2015-02-20 21:07:12 +02:00
ea55572ab8
Merge branch 'develop' into MAX-324
2015-02-20 04:45:48 +02:00
3924f70d6b
Fixed log manager sometimes not writing the last character in a log message.
...
This was caused by type conversions from int to size_t and the usage of the MAX macro.
2015-02-20 04:42:02 +02:00
db1ea422a0
Merge branch 'develop' into MAX-324
...
Conflicts:
server/core/modutil.c
2015-01-20 04:25:40 +02:00
06c2d201e0
remove makefiles and other garbage
2015-01-14 19:08:24 +02:00
fed828eb29
Merge branch 'release-1.0GA' into MAX-324
...
Conflicts:
server/MaxScale_template.cnf
server/core/service.c
2015-01-06 04:45:30 +02:00
ba009e5fd3
Fixes to Coverity defects 85010 84878 72752 72742 72719 and 73418.
...
skygw_utils.cc: Added function is_valid_posix_path that checks if a path is POSIX-compliant.
2015-01-05 06:05:56 +02:00
635fcf708f
Fix to bugs #665 , and #664 . Potentially to #649 .
...
http://bugs.skysql.com/show_bug.cgi?id=665
http://bugs.skysql.com/show_bug.cgi?id=664
http://bugs.skysql.com/show_bug.cgi?id=649
dcb.c:dcb_final_free: (665):set dcb->session->client pointer to NULL so that it won't be read anymore and other threads won't try to close it.
dcb_final_free:(664):don't free dcb->data, it is either freed in session_alloc if session creation fails or in session_free only.
session.c:if session creation fails, free dcb->data and remove links between client DCB and session.
mysql_backend.c:(665):gw_backend_close:check that session->client isn't NULL and that client DCB's state is still polling before calling dcb_close for it.
mysql_client.c:gw_mysql_do_authentication:if anything fails, and session_alloc won't be called, free dcb->data.
mysql_common.c:gw_send_authentication_to_backend:if session is already closing then return with error.
2014-12-29 20:19:01 +02:00
726f221113
Added debug log to session closing and related functions
2014-12-19 12:18:25 +02:00
cf40cbfbf0
Aadded some of the code from routeQuery to its own function, change_current_db, which extracts db name, tests if the name can be found among cached database names (hashtable) and if it does, change the db. Otherwise create an error message and add it to poll eventqueue like it was sent from some of the backends.
2014-12-08 23:37:21 +02:00
01b1b0a304
Fixes to Coverity issues 84388, 84386, 84385
...
mysql_mon.c: Added back server state logging to Debug build.
query_classifier.cc: removed some extra debug code, cleaned up a bit function documentation.
mysql_client_server_protocol.h, mysql_backend.c, mysql_common.c: changed some variables to signed ones to enable checking of calculations in the code.
skygw_utils.cc: removed erroneous debug assertion.
2014-12-05 23:39:14 +02:00
f2c2e4f81c
Fix to bug #617 , http://bugs.skysql.com/show_bug.cgi?id=617
...
When filewriter_init failed due to full disk, error branch freed messages twice. Removed unnecessary free command.
2014-12-02 23:58:28 +02:00
3e18e091c1
Fixed unreported bug in log_manager where a terminating character was added in the middle of log message.
2014-11-27 16:53:50 +02:00
155e795830
Fix to #622 , http://bugs.skysql.com/show_bug.cgi?id=622
...
When MaxScale starts it opens log file of each type and if there exist log files of same types in the same directory, it will try to reuse the file with largest sequence number in it. If there are no existing files, a file name with sequence number 1 will be created. If the file with largest sequence number is not writable, a new log file with larger sequence number will be created.
2014-11-21 13:44:12 +02:00
70eef7aaa8
Fix to bug #513 , http://bugs.skysql.com/show_bug.cgi?id=513
2014-11-17 15:33:13 +02:00
780733f870
MAX-325, Log rotation functionality. When skygw_log_rotate is called, corresponding logfile's rotate flag (lf_rotateflag) is set and log writer thread is woken up. Writer opens a new log file and closes the old one.
2014-11-12 14:48:17 +02:00
061fa62d29
Fixes to Coverity issues 77197 (mysql_common.c, dcb.c, mysql_client.c, skygw_debug.h), 72654 (poll.c), 72756 (mysql_backend.c), 72744 (mysql_backend.c), 77197 (mysql_common.c), 72746 (mysql_common.c), 72676 (mysql_common.c), 72705 (readwritesplit.c), 72697 (readwritesplit.c), 72652 (skygw_debug.h)
2014-11-11 14:10:06 +02:00
d1772e300e
Addition to fix to bug #613 , http://bugs.skysql.com/show_bug.cgi?id=613
...
Added new declaration of skygw_file_write and modification to the function which returns errno instead of boolean.
2014-11-10 13:59:55 +02:00
f44ed2f3b4
Fixes to Coverity issues 72736 & 72735
2014-11-06 08:45:46 +02:00
0a306b2eeb
Fix bug #611 , http://bugs.mariadb.com/show_bug.cgi?id=611
...
Fixes to Coverity issues 72703, 72713, 72718, 72721
2014-11-05 18:37:11 +02:00
9728502522
Fix to Coverity issue 72769
2014-11-05 17:50:07 +02:00
86cd6ec0e9
Fix to Coverity issue 72726
2014-11-05 17:27:37 +02:00