f4576dbabc
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
...
Conflicts:
log_manager/log_manager.cc
2014-11-12 14:59:36 +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
624c347984
Fixed compilation errors due to declaring variables after a goto command.
2014-11-12 10:24:21 +02:00
8af97016bb
Dummy for skygw_log_rotate.
2014-11-11 18:33:17 +02:00
20ddcfb8c4
Fix to bug #613 , http://bugs.skysql.com/show_bug.cgi?id=613
...
Simple fix: disable logging to files where logging fails.
2014-11-10 13:50:24 +02:00
474f018cee
Fixes to minor Coverity errors:
...
75424
73422
72724
72702
72662
2014-11-07 11:12:26 +02:00
4f39828fa1
Fixes to Coveriry issues 72757 & 73266
2014-11-07 10:07:22 +02:00
17f87e29af
Fixes to some Coverity issues.
2014-11-05 11:57:42 +02:00
00fded016b
Fixes to Coverity tasks : 73267, 72686, 72672
...
Cleaned up warnings, and added checks to malloc return values and error log writes in case of failures.
2014-10-31 15:25:59 +02:00
5b80cf3032
If opening any of the log files fail, MaxScale doesn't start before the cause has been removed. Added informative error message which is to be printed to standard error output.
2014-10-30 21:19:26 +02:00
7048270062
Coverity : 72678, 72687, 72689
...
Fixed memory leaks and use of freed memory
2014-10-30 18:19:41 +02:00
9d466b5770
Coverity : 72737, 72751, 72754
...
Fixed uses of uninitialized values.
2014-10-30 17:51:29 +02:00
32575e3fc0
Merge branch 'develop' into shm_log_fix
...
Conflicts:
log_manager/log_manager.cc
2014-10-15 21:26:03 +03:00
726ab87f4b
Fix to #575 , http://bugs.mariadb.com/show_bug.cgi?id=575
...
log_manager.cc:
Log manager handles cases where there are mismatch in user privileges.
Mark log files enabled in the global lm_enabled_logfiles_bitmask after initialization so that it reflects reality in error cases. In general, take into account the possibility that any phase in initialization may fail and read return values.
Replaced file_exists_and_is_writable to check_file_and_path which has a slightly different logic and which detects if file open fails for a few different reasons.
Improved logging (in stderr) in general in error cases.
gateway.c: Also check home directory accessibility in case when it is provided as a command-line argument. Added function check_dir_access to provide that function. Read return value of skysql_logmanager_init and exit (nicely) if it failed.
skygw_utils.cc: initialize mlist with version number 2, which indicates that object is initialized (different than zero) and that there are no active updates on the object (version%2==0).
2014-10-14 13:22:16 +03:00
5c968c9ac8
Merge branch 'develop' into shm_log_fix
2014-10-10 07:02:22 +03:00
29e53e150a
Fix to bug # 565, http://bugs.mariadb.com/show_bug.cgi?id=565
...
Client flags are now copied to each backend and used in their connections.
log_manager.cc: fixed string allocation where one byte was missing.
mysql_client.c: fixed string allocation where one byte was missing.
2014-10-08 22:27:28 +03:00
194ebcb054
Fix to bug 567( http://bugs.mariadb.com/show_bug.cgi?id=567 )
...
log_manager.cc: if the file exists, is a symbolic link and is not writable, the log manager does not fail but unlinks it and creates a new one.
2014-10-06 15:13:18 +03:00
856448500e
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
2014-10-01 14:38:15 +03:00
b0683d9b4d
Updated the licensing year from 2013 to 2013-2014
2014-10-01 14:37:12 +03:00
a53e80e144
Added back removal of double newline character from log records.
2014-10-01 14:30:59 +03:00
52c0d0c768
Merge remote-tracking branch 'origin/develop' into header_rename
2014-10-01 05:24:02 +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
3b9175d957
Clean up
2014-09-29 13:52:14 +03:00
686d28a1f0
Fix to bug #506 , http://bugs.skysql.com/show_bug.cgi?id=506
...
If debug and/or trace log is stored to shared memory, the absolute path to file is now /dev/shm/<pid>/skygw_[trace1|debug1].log
2014-09-29 13:21:26 +03:00
d27522a6f9
Merge branch 'release-1.0beta-refresh' into cmake_build
2014-09-22 11:12:14 +03:00
3f0de666ac
Changed the order of linking to resolve some debug build bugs and added the missing parent directory of the MYSQL_DIR into the included directories.
2014-09-20 19:44:30 +03:00
a16f900d6d
Merge branch 'hholzgra-hartmut-compile-warnings' into release-1.0beta-refresh
...
Conflicts:
server/include/dcb.h
Resolved
2014-09-19 17:37:39 +01:00
c2ba3abac2
fixed linker errors in log_manager
2014-09-18 12:55:36 +03:00
7471911087
added missing debug compiler flags and tuned library linking flags
2014-09-18 11:05:40 +03:00
cde74cfaa5
added missing -lstdc++ flags
2014-09-17 09:16:23 +03:00
349fc9d6ab
Added missing Pthread and libaio flags to log manager
2014-09-17 04:26:36 +03:00
8b1afbfe26
fixed tests not working with the normal 'make testall'
2014-09-16 20:02:28 +03:00
41226692ac
Merge branch 'release-1.0beta-refresh' into cmake_build
2014-09-16 12:11:17 +03:00
c8fc5b712b
Merge branch 'hholzgra-hartmut-gitignore' into release-1.0beta-refresh
2014-09-15 13:22:46 +01:00
1f56db310d
Changed variable names to closer match their usage
...
Changed the default values to the same as in makefiles
Added configured versions of maxscale.conf and maxscale init.d script
2014-09-15 14:12:55 +03:00
68f8e32f58
Added physical log paths to message which is printed on the start screen. Refers to bug #506 , http://bugs.skysql.com/show_bug.cgi?id=506
2014-09-15 13:38:47 +03:00
48012cd571
Added more build options and README changes
2014-09-15 11:48:40 +03:00
32b72ce474
more configuration options, README update and tests
2014-09-12 16:48:21 +03:00
d8c34aabad
added log manager and query classifier tests
2014-09-12 06:06:11 +03:00
b3ce971020
initial implementation of the CMake build system
2014-09-11 18:24:41 +03:00
d35a73478e
Added the actual output of log entry tests to the testing log.
2014-09-10 14:03:57 +03:00
aceae1c32b
Removed the debug tags from log entries in standard debug builds and added a special switch to the tests
2014-09-10 13:00:28 +03:00
4028c50fea
added state based block buffers to log manager
2014-09-10 12:09:00 +03:00
aa83b6b21a
Changed the way blockbuffers are used after they fill up.
...
The blockbuffers that get full are now moved to the end of the list of blocks. This prevents messages being written to the disk in the wrong order.
2014-09-09 10:48:25 +03:00
2097b54c35
More debugging info
2014-09-08 14:49:52 +03:00
d7439b67c5
Added log order scripts and more debug output
2014-09-08 10:40:23 +03:00
4a9fb47699
fixed a division by zero error and enabled non-flush mode
2014-09-05 17:28:32 +03:00
bfac227f4d
tests for log manager write order
2014-09-05 17:24:26 +03:00
25c5d1af25
fixed some warnings about const -> non-const conversions
2014-08-26 18:25:28 +02:00