Mark Riddoch
1e5bc37780
Use strtok_r rather than strtok
2014-12-03 09:33:55 +00:00
Markus Makela
49534f75b5
Added synchronous log flushing to disk when a signal is received.
2014-12-02 13:31:15 +02:00
VilhoRaatikka
83f7203213
Fix to unreported bug which printed result of getsockopt even in case when there was no socket error.
2014-11-27 15:37:13 +02:00
Mark Riddoch
d063df0f4a
Update message
2014-11-26 11:10:59 +00:00
Mark Riddoch
31f5017d6d
Merge branch 'release-1.0GA' of https://github.com/mariadb-corporation/MaxScale into release-1.0GA
2014-11-26 11:04:48 +00:00
Mark Riddoch
6ee9a84cef
Updated error messages
2014-11-26 11:04:33 +00:00
MassimilianoPinto
398eee8ece
Added a log message for mysql_old_password
...
Added a log message for mysql_old_password detection: user is not loaded
2014-11-26 11:44:38 +01:00
Mark Riddoch
863a30c969
Merge branch 'blr' of https://github.com/mariadb-corporation/MaxScale into blr
...
Conflicts:
server/core/gateway.c
2014-11-26 08:47:50 +00:00
Markus Makela
c38773407c
Switched to /dev/random instead of time(NULL) in secrets.c
2014-11-25 11:37:21 +02:00
Mark Riddoch
ba44605cb0
Changes for FDE events
2014-11-21 15:01:38 +00:00
Mark Riddoch
5fa87776b0
Fixes for Coverity bugs
2014-11-20 16:04:22 +00:00
MassimilianoPinto
69a1c5aaf5
Changed log messages for dousers
...
Changed log messages for dousers
2014-11-20 11:31:54 +01:00
Markus Makela
a65b9fa8b3
Fixes to Coverity defects: 72662 82143 82144 82145 82348 82349
2014-11-20 06:44:43 +02:00
Mark Riddoch
43ed77b52b
Bug 515 Conditional arguemnt to gw_write
2014-11-19 16:43:21 +00:00
Mark Riddoch
0e6fa09d7e
Fixes for Coverity issues
2014-11-19 16:01:38 +00:00
Mark Riddoch
97b730c2e0
Addition of signal handler for SIGUSR1 to rotate all log files
2014-11-19 15:16:48 +00:00
Mark Riddoch
d3c8770852
Merge branch 'blr' into develop
...
Conflicts:
client/maxadmin.c
server/core/CMakeLists.txt
server/core/dcb.c
server/core/gateway.c
server/core/poll.c
server/core/test/CMakeLists.txt
server/core/test/makefile
server/include/poll.h
server/modules/routing/debugcmd.c
2014-11-19 12:00:55 +00:00
Mark Riddoch
6cbbf7260f
Improved logging and diagnostics
2014-11-19 10:49:40 +00:00
MassimilianoPinto
ed461d58e2
Moved messages to message log
...
Moved messages to message log and others printed only with DEBUG mode
compile setting
2014-11-19 11:36:44 +01:00
Markus Makela
2556097a98
Added commands to debugcmd.c that enable and disable logs for a single session.
...
Added the session id to dprintAllSessions and dprintSession output.
2014-11-19 12:25:33 +02:00
VilhoRaatikka
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
VilhoRaatikka
a30fc0c787
MAX-328, Add session identifier to trace log entries. Session id is given to session in session_alloc and stored to thread's local storage variable when thread picks a new event from epoll_wait.
2014-11-17 23:27:14 +02:00
VilhoRaatikka
70eef7aaa8
Fix to bug #513 , http://bugs.skysql.com/show_bug.cgi?id=513
2014-11-17 15:33:13 +02:00
Mark Riddoch
67a0f65b74
Fixed issue with not releasing the spinlock in show tasks
2014-11-17 11:56:41 +00:00
VilhoRaatikka
8c1e7172f3
Added debug logging for #615
2014-11-14 20:48:33 +02:00
MassimilianoPinto
b37fb35669
Removed PID print to stderr
...
Removed PID print to stderr. it’s already included id message log
2014-11-14 10:03:11 +01:00
MassimilianoPinto
238c476d3a
getUsers try selecting a Master server
...
getUsers try selecting a Master server if available.
Next users reload will connect to master server
2014-11-13 17:41:50 +01:00
MassimilianoPinto
12b06a503e
Removed NULL pointer printing
...
Removed NULL pointer printing
2014-11-13 17:15:17 +01:00
Markus Makela
fc5c3943e8
Fixes to Coverity defects:
...
72643
72645
72655
72656
72657
72658
72664
72698
72712
2014-11-12 19:02:37 +02:00
Markus Makela
917d213c13
Fix to Coverity defect 73387
2014-11-12 18:09:10 +02:00
VilhoRaatikka
4e405ebb8f
Added logging to log rotation and to filter session setup.
2014-11-12 16:41:28 +02:00
VilhoRaatikka
8311d02f61
Removed unnecessary local variables for errno since it is thread safe.
2014-11-11 14:51:55 +02:00
VilhoRaatikka
0ea4dd63a9
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
2014-11-11 14:25:49 +02:00
VilhoRaatikka
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
Markus Makela
9cb2be9605
Fixes to Coverity erros 75748 and 76132.
2014-11-11 13:42:12 +02:00
VilhoRaatikka
9a5168c3e8
Put errors ganerating code behind FAKE_CODE macro, which is not defined by default in any build.
2014-11-10 15:22:08 +02:00
VilhoRaatikka
a3675e9098
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
2014-11-10 14:18:43 +02:00
VilhoRaatikka
62270412cf
readwritesplit.c: prevent switching the master during session. Added logging to cases where master has changed.
...
Moved DCB's member errhandle_called behing DEBUG flags to Release build. It shows if handleError is called for a DCB and makes it possible to avoid redundant calls.
2014-11-10 14:15:32 +02:00
VilhoRaatikka
3b07449daa
Fix to bug #614 , http://bugs.skysql.com/show_bug.cgi?id=614
...
Added protected state check to mysql_client.c, fixed locking in session.c
2014-11-10 14:07:51 +02:00
MassimilianoPinto
f466f86672
Added default NULL for users table
...
Added default NULL for users table
2014-11-10 11:10:32 +01:00
MassimilianoPinto
071e15048d
Removed leak for service with more listeners
...
Removed leak for service with more listeners:
users are allocated once in service
2014-11-10 11:08:12 +01:00
MassimilianoPinto
62069f7ba9
Missing bracket
...
Missing bracket
2014-11-07 17:10:24 +01:00
MassimilianoPinto
39cc701b0d
Branch update
...
Branch update
2014-11-07 16:59:01 +01:00
MassimilianoPinto
3b982ae820
Added monitor timeouts for connect/read/write
...
Added monitor timeouts for connect/read/write
2014-11-07 16:45:06 +01:00
Mark Riddoch
89355c6579
Merge branch 'develop' of github.com:skysql/MaxScale into develop
2014-11-07 13:18:13 +00:00
Mark Riddoch
45005d9b35
Fix free of uninitialised pointers in case of failure.
2014-11-07 13:17:50 +00:00
Markus Makela
3b1ca027ad
Fixed MaxScale not starting if the log directory already existed.
2014-11-07 14:56:39 +02:00
Markus Makela
a4caac55c8
Fixes to Coverity errors:
...
72662
72702
72724
73397
73410
73414
73422
75424
75748
75789
75938
75939
Also includes a fix to a bug caused by a previous Coverity error change in canonizer.c
2014-11-07 11:52:40 +02:00
Markus Makela
474f018cee
Fixes to minor Coverity errors:
...
75424
73422
72724
72702
72662
2014-11-07 11:12:26 +02:00
Markus Makela
e1af60ac71
Fixes to Coverity errors:
...
72747
75940
75941
73408
75425
2014-11-07 10:57:11 +02:00