Jan Lindström
a7f027090c
Merge
2013-08-09 13:24:23 +03:00
Jan Lindström
dd4f5c88de
Fixed test compilation and small error.
2013-08-09 13:23:10 +03:00
vraatikka
43fb6b87f1
Enabled trace log in DEBUG=Y builds. Modified testlog-c accordingly.
2013-08-09 10:01:34 +03:00
vraatikka
58e6415c73
Merge
2013-08-08 23:41:42 +03:00
vraatikka
0ad25ba3ab
Added functions skygw_log_enable(logfile_id_t) and skygw_log_disable(logfile_id_t) to Log manager API. By calling them log writing to any of predefined log files can be switched on or off.
...
Added simple test to testlog.c
2013-08-08 23:38:00 +03:00
Massimiliano Pinto
8a9d178785
Fixed bug for invalid memory access in row[1]+1 when row[1] is ""
2013-08-08 18:40:02 +02:00
vraatikka
1ab8420e91
Added an example to user command : help show dbusers and removed erroneous complain about unknown subcommand if show dbusers is called without arguments.
2013-08-08 15:46:33 +03:00
Jan Lindström
1f3665c8b0
Fixed compiler issue on connecting to server binlog using binlog position or gtid.
2013-08-08 10:32:08 +03:00
Jan Lindström
685f3b0bda
Automatic merge
2013-08-08 08:30:01 +03:00
Jan Lindström
9b7f94da39
test
2013-08-08 08:29:10 +03:00
Jan Lindström
4cf98bbb9f
Added more comments and test file.
2013-08-08 08:28:22 +03:00
vraatikka
d94153c29f
If maxscale is compiled with DEBUG=Y readconnrouter module writes slave selection info to trace log. Example:
...
SkySQL MaxScale Thu Aug 8 00:01:08 2013
------------------------------------------
2013 08/08 00:01:17 Selected server in port 3003 to as candidate. Connections : 0
2013 08/08 00:01:17 Examine server in port 3002 with 0 connections. Status is 5, inst->bitvalue is 6
2013 08/08 00:01:17 Examine server in port 3001 with 0 connections. Status is 5, inst->bitvalue is 6
2013 08/08 00:01:17 Examine server in port 3000 with 0 connections. Status is 3, inst->bitvalue is 6
2013 08/08 00:01:17 Final selection is server in port 3003. Connections : 1
2013 08/08 00:01:22 Selected server in port 3003 to as candidate. Connections : 1
2013 08/08 00:01:22 Examine server in port 3002 with 0 connections. Status is 5, inst->bitvalue is 6
2013 08/08 00:01:22 Examine server in port 3001 with 0 connections. Status is 5, inst->bitvalue is 6
2013 08/08 00:01:22 Examine server in port 3000 with 0 connections. Status is 3, inst->bitvalue is 6
2013 08/08 00:01:22 Final selection is server in port 3002. Connections : 1
2013-08-08 00:10:33 +03:00
vraatikka
f1498e4403
Added log flusher thread, which flushes once per second.
2013-08-08 00:08:45 +03:00
vraatikka
a447583214
If MaxScale.cnf exists, install takes a backup of it before overwriting it with version from maxscale/server.
2013-08-08 00:06:38 +03:00
ec2-user
dcc72f017e
use ##VERSION_TAG## in .spec
2013-08-07 16:51:09 +02:00
ec2-user
719c8168e8
fix .spec to work with Jenkins
2013-08-07 16:50:08 +02:00
Massimiliano Pinto
75e7de182f
fprintf debug for added backend connection is protected by if (backend->fd > 0)
2013-08-07 09:39:29 +02:00
Jan Lindström
cd564b7628
Merge
2013-08-06 20:09:50 +03:00
Jan Lindström
8f8798fa53
Added a new directory structure and fixed boost compiler problems.
2013-08-06 20:07:45 +03:00
Massimiliano Pinto
8449482279
Fixed typo
2013-08-06 10:55:20 +02:00
vraatikka
256b8e8013
Added more test cases and reformatted output a bit.
2013-08-06 11:14:45 +03:00
vraatikka
30456115f7
Memory used by user structure was not initialized. Changed malloc to calloc.
2013-08-05 18:21:08 +03:00
vraatikka
234b8c40a3
Cleaned up some debug printings (to stdout).
2013-08-05 18:15:41 +03:00
vraatikka
13248c2a16
Added server/core/test directory, makefile and testhash.c for testing hashtable implementation.
...
In makefile, there is target all, which compiles and executes tests.
2013-08-05 18:04:02 +03:00
vraatikka
b852079631
Enabled debug assertions for DEBUG=Y builds. Fixed one debug assertion in log manager.
2013-08-05 17:47:21 +03:00
vraatikka
bc6fe8f6ef
hashtable_add now checks input parameter and returns with zero (indicating that no elements were added) if hashsize is zero. Caused floating point exception.
2013-08-05 15:01:36 +03:00
vraatikka
ef1c514489
Added creation of an empty depend.mk file to core directory.
2013-08-05 13:50:52 +03:00
vraatikka
401d4920e4
Moved dcb_hashtable_stats from hastable.c to dcb.c to break dependency between hashtable and the rest of the maxscale. Added check fields to hashtable structure.
2013-08-05 11:51:10 +03:00
vraatikka
ee68633c22
Removed unnecessary line
2013-08-05 10:25:45 +03:00
Jan Lindström
4cc301f415
Fixed error on product build.
2013-08-05 07:32:47 +03:00
Jan Lindström
24337653f1
Automatic merge.
2013-08-05 06:33:22 +03:00
vraatikka
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
vraatikka
9fb072ea74
Changed log manager APChanged log manager APII
2013-08-04 23:14:48 +03:00
vraatikka
d2efbcf867
Changed log manager API. Removed unnecessary memory context pointer (always NULL):
...
bool skygw_logmanager_init(void** buf, int argc, char* argv[]) >>
bool skygw_logmanager_init(int argc, char* argv[])
void skygw_logmanager_done(void** buf) >>
void skygw_logmanager_done(void)
void skygw_log_done(void* writebuf) >>
void skygw_log_done(void)
int skygw_log_write(void* writebuf, logfile_id_t id, char* format, ...) >>
int skygw_log_write(logfile_id_t id, char* format, ...)
int skygw_log_write_flush(void* writebuf, logfile_id_t id, char* format, ...) >>
int skygw_log_write_flush(logfile_id_t id, char* format, ...)
--- static functions :
static bool logmanager_init_nomutex(void** p_ctx, int argc, char* argv[]) >>
static bool logmanager_init_nomutex(int argc, char* argv[])
static void logmanager_done_nomutex(void** ctx) >>
static void logmanager_done_nomutex(void)
2013-08-04 23:07:54 +03:00
vraatikka
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
vraatikka
6faca29281
Added commands:
...
THIS=`pwd`
cd $(DEST)
- `./maxkeys $(DEST)/MaxScale/etc/.secrets`
cd $(THIS)
to maxscale/server/core/Makefile
Now .secrets is by default there and no complains in log.
2013-08-04 23:01:36 +03:00
vraatikka
b3302b1bad
Renamed reload users to reload dbusers.
2013-08-03 23:29:45 +03:00
vraatikka
26e4422c4d
Removed shutdown gateway command from debug commands
2013-08-03 23:21:21 +03:00
vraatikka
8b720f211e
in hastable_delete check if deleted entry's next pointer is NULL.
2013-08-03 23:10:45 +03:00
vraatikka
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
Massimiliano Pinto
3357748aad
Some typos fixed
2013-08-02 10:00:56 +02:00
vraatikka
9305cf0f9f
In server_update check if new user or pwd are NULL and decline to update used values if they are.
2013-08-02 10:38:16 +03:00
Jan Lindström
89079c6fb8
Fixed compilation issues with boost.
2013-08-01 19:49:37 +03:00
Massimiliano Pinto
ce8ce5b8fd
Added a check for candidate server, if NULL return
2013-07-31 16:18:45 +02:00
vraatikka
96855a6feb
Log message fine tuning.
2013-07-30 23:09:34 +03:00
vraatikka
b2099947b4
Changed mysterious log message.
2013-07-30 23:08:31 +03:00
vraatikka
896233d65f
Changed some important information to use skygw_log_write_flush.
2013-07-30 19:32:39 +03:00
vraatikka
75f308fc3f
Changes some important messages to use skygw_log_write_flush.
2013-07-30 19:31:57 +03:00
vraatikka
56c73086aa
Disabled buffering of log file stream by call of setvbuf.
2013-07-30 19:30:23 +03:00
vraatikka
b71b22b18a
Removed dependency files because they are now created as a part of makefile processing.
2013-07-30 15:07:50 +03:00