Commit Graph

11034 Commits

Author SHA1 Message Date
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
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
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
b3302b1bad Renamed reload users to reload dbusers. 2013-08-03 23:29:45 +03:00
26e4422c4d Removed shutdown gateway command from debug commands 2013-08-03 23:21:21 +03:00
8b720f211e in hastable_delete check if deleted entry's next pointer is NULL. 2013-08-03 23:10:45 +03:00
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
3357748aad Some typos fixed 2013-08-02 10:00:56 +02:00
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
89079c6fb8 Fixed compilation issues with boost. 2013-08-01 19:49:37 +03:00
ce8ce5b8fd Added a check for candidate server, if NULL return 2013-07-31 16:18:45 +02:00
96855a6feb Log message fine tuning. 2013-07-30 23:09:34 +03:00
b2099947b4 Changed mysterious log message. 2013-07-30 23:08:31 +03:00
896233d65f Changed some important information to use skygw_log_write_flush. 2013-07-30 19:32:39 +03:00
75f308fc3f Changes some important messages to use skygw_log_write_flush. 2013-07-30 19:31:57 +03:00
56c73086aa Disabled buffering of log file stream by call of setvbuf. 2013-07-30 19:30:23 +03:00
b71b22b18a Removed dependency files because they are now created as a part of makefile processing. 2013-07-30 15:07:50 +03:00
4d29930c6b Revert back to revision 241 2013-07-30 11:55:58 +03:00
2ab5a37c63 Clean build_gateway.inc 2013-07-30 11:51:36 +03:00
f3cf1d703e Removed depend.mk files. Added command 'touch depend.mk' to each Makefile which attempts to include depend.mk. That is for the makefile process phase where only the existence of depend.mk is checked. Later the real file is created in 'depend' target. 2013-07-30 11:43:39 +03:00
d2432ab307 Removed protocol_1.0, the Apache APR prototype 2013-07-29 10:08:53 +02:00
636e5b619c fix Makefile to comply with new dirs 2013-07-29 09:39:46 +03:00
da8a5592d9 repositories merge 2013-07-28 05:33:20 +00:00
a7c82310f9 moving files to /server to make merge possible 2013-07-28 05:31:11 +00:00
25d26eb3b8 Corrected a typo in line feed handling. 2013-07-27 12:23:47 +03:00
7a6129861e Added timestamp to log file headers and to the beginning of each line. Removed additional line feeds.
Example:

SkySQL MaxScale Sat Jul 27 12:13:10 2013
------------------------------------------
2013 07/27 12:13:10  Loaded module testroute: V1.0.0
2013 07/27 12:13:10  Initialise debug CLI router module V1.0.1.
2013 07/27 12:13:10  Loaded module debugcli: V1.0.1
2013-07-27 12:14:30 +03:00
b566c41067 Log manager sometimes failed to flush after skygw_log_write_flush because log client signaled filw writer thread too early. Fixed so that write is done first and file writer is registered after that. Except in cases where skygw_log_flush was called. Then only flush is triggered.
Added a few trivial cases to test.
2013-07-26 23:06:12 +03:00
3989615197 Code polishing. 2013-07-26 21:46:23 +03:00
d8978dce1c Fixed a typo 2013-07-26 19:25:42 +03:00
b235781d2e Added run-time path to dynamically loadable libraries; '-Wl,rpath,$(DEST)/lib' to Makefile. When compiling, use
make DEST=<path to library directory>
2013-07-26 19:23:47 +03:00
ff8b432943 Added run-time path to dynamically loadable libraries; '-Wl,rpath,$(DEST)/lib' to makefile. When compiling, use
make DEST=<path to library directory>
2013-07-26 19:20:06 +03:00
404160908d In mysql monitor sectio
the password of mdefault monitor user is:


passwd=
2013-07-26 15:21:01 +02:00
80b25b6270 merge 2013-07-26 15:25:00 +03:00
2f189cb153 Log manager erroneously wrote string termination character after every log message.
Added a few trivial test cases.
2013-07-26 15:21:54 +03:00
4fc3050ac7 Fix unnecessary defines out of code, these can be found from MySQL headers. 2013-07-26 15:21:06 +03:00
4a4383f6aa Added servers metadata reading and writing. 2013-07-26 13:46:31 +03:00
867eab37fc Monitors that run on separate thread call thread_wait in stopMonitor.
Fixes problem with ordering of calls to mysql_library_end (in main) and mysql_thread_end (in monitor thr).
2013-07-26 11:27:54 +03:00
4374ef01c0 Addition of PDF versions of two documents 2013-07-25 17:27:05 +02:00
03e70ab78f Addition of PDF versions of two documents 2013-07-25 17:27:05 +02:00
b3b444880d Added servers metadata and fixed issues on embedded server connection and test program compilation and linking. 2013-07-25 17:59:55 +03:00
1c3e44d446 Removed debug fprint about failed mutex destroy. 2013-07-25 17:22:19 +03:00
52564314d4 Documented concurrency control between filewriter thread and log clients.
Changed log header text, replaced SkySQL GAteway with SkySQL MaxScale.
Fixed bug in log flushing. skygw_log_write_flush didn't cause call of fsync, which suspended file writing.
2013-07-25 16:21:13 +03:00
5e6ed4cafa Addition of show monitors command, shutdown monitor and restart monitor 2013-07-25 13:13:54 +02:00
003db6eaa9 Added space character so that log_manager will be installed too 2013-07-25 13:36:39 +03:00
d5b41181ec Prevent reuse of MAXKEYS structure 2013-07-25 12:20:28 +02:00
49ea8ab7eb Moved daemonization earlier to ensure that libmysqld is used by one process only. 2013-07-25 12:04:27 +03:00
230cab7024 Fixed issue with string length in passwordEncrypt 2013-07-25 10:23:34 +02:00
8df4014faa Replaced -I/usr/include/mysql with -I$(MARIADB_SRC_PATH)/include/ 2013-07-24 22:52:46 +03:00
7262e8245a Addition of extra check in debugcli 2013-07-24 18:22:32 +02:00
d2b5f3f8b5 Removed because the AES routines and keys management is now implemented 2013-07-24 15:17:55 +02:00