2556097a98Added commands to debugcmd.c that enable and disable logs for a single session. Added the session id to dprintAllSessions and dprintSession output.
Markus Makela
2014-11-19 12:25:33 +02:00
a30fc0c787MAX-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.
VilhoRaatikka
2014-11-17 23:27:14 +02:00
67a0f65b74Fixed issue with not releasing the spinlock in show tasks
Mark Riddoch
2014-11-17 11:56:41 +00:00
c9b679359fMade RWSplit to use slave selection criteria also during client session. Previously the criteria was use when slaves were selected for use of client session.
VilhoRaatikka
2014-11-17 13:40:18 +02:00
1399a33944Merge branch 'develop' into firewall
Markus Makela
2014-11-17 13:05:40 +02:00
a96f2fe57bFixed some typos and testing messages from CMake output.
Markus Makela
2014-11-17 12:52:21 +02:00
4708e97208Added a 'testall-valgrind' target to CMake that runs the full test suite with Valgrind.
Markus Makela
2014-11-17 12:47:24 +02:00
df9acee69aFix to bug# 616: Added checks that only one block buffer (the first one) is being moved at any one time.
Markus Makela
2014-11-17 12:44:25 +02:00
4f136fa4d2Fixed backend selection logic in get_dcb. If slave is not found write a warning to error log and fall through to master selection. If master has changed or previous master's state has changed, routing fails.
VilhoRaatikka
2014-11-15 23:57:09 +02:00
e790437fc0Fixed debug assert. If session is closed its router session pointer is nullified and it is not error.
VilhoRaatikka
2014-11-14 22:35:23 +02:00
175711a1bcFix to #601, http://bugs.skysql.com/show_bug.cgi?id=601 if (func.auth ==)gw_change_user->gw_send_change_user_to_backend is called before backend has its scramble, auth packet is set to backend's delauqueue instead of writing it to backend. When backend_write_delayqueue is called COM_CHANGE_USER packets are rewritten with backend's current data.
VilhoRaatikka
2014-11-13 17:55:29 +02:00
171af0fc03Merge branch 'develop' into firewall
Markus Makela
2014-11-13 14:33:19 +02:00
fe20698fb0Fixed a bug in httpd.c
Markus Makela
2014-11-13 13:33:14 +02:00
afb8859b43Merge branch 'develop' into firewall
Markus Makela
2014-11-13 09:50:02 +02:00
59b587462aFix to Coverity defects 72714 75940 75941
Markus Makela
2014-11-13 09:09:11 +02:00
fb9d792859Fix to Coverity defect 76134
Markus Makela
2014-11-13 09:02:56 +02:00
aaa9bfd5c2Fixes to Coverity defects 78241 78242 78243 78244 78245
Markus Makela
2014-11-13 08:56:02 +02:00
fc5c3943e8Fixes to Coverity defects: 72643 72645 72655 72656 72657 72658 72664 72698 72712
Markus Makela
2014-11-12 19:02:37 +02:00
b5445bdf63Added a variable that controls the FAKE_CODE define
Markus Makela
2014-11-12 18:12:58 +02:00
917d213c13Fix to Coverity defect 73387
Markus Makela
2014-11-12 18:09:10 +02:00
2b11b53144Fixes to Coverity defects 72681, 72683, 72691.
Markus Makela
2014-11-12 17:25:49 +02:00
780733f870MAX-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.
VilhoRaatikka
2014-11-12 14:48:17 +02:00
624c347984Fixed compilation errors due to declaring variables after a goto command.
Markus Makela
2014-11-12 10:24:21 +02:00
8af97016bbDummy for skygw_log_rotate.
VilhoRaatikka
2014-11-11 18:33:17 +02:00
8311d02f61Removed unnecessary local variables for errno since it is thread safe.
VilhoRaatikka
2014-11-11 14:51:55 +02:00
50a5a7892dRepurposed old code and deleted obsolete code.
Markus Makela
2014-11-11 14:27:23 +02:00
62270412cfreadwritesplit.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.
VilhoRaatikka
2014-11-10 14:15:32 +02:00
d1772e300eAddition 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.
VilhoRaatikka
2014-11-10 13:59:55 +02:00
e86b51865cFixes to Coverity errors 72653, 72685, 72707, 73391, 73393, 73394, 73410 and 73414.
Markus Makela
2014-11-10 13:51:21 +02:00