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
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
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
vraatikka
4d29930c6b
Revert back to revision 241
2013-07-30 11:55:58 +03:00
vraatikka
2ab5a37c63
Clean build_gateway.inc
2013-07-30 11:51:36 +03:00
vraatikka
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
Massimiliano Pinto
d2432ab307
Removed protocol_1.0, the Apache APR prototype
2013-07-29 10:08:53 +02:00
skysql
636e5b619c
fix Makefile to comply with new dirs
2013-07-29 09:39:46 +03:00
Timofey Turenko
da8a5592d9
repositories merge
2013-07-28 05:33:20 +00:00
Timofey Turenko
a7c82310f9
moving files to /server to make merge possible
2013-07-28 05:31:11 +00:00
vraatikka
25d26eb3b8
Corrected a typo in line feed handling.
2013-07-27 12:23:47 +03:00
vraatikka
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
vraatikka
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
vraatikka
3989615197
Code polishing.
2013-07-26 21:46:23 +03:00
vraatikka
d8978dce1c
Fixed a typo
2013-07-26 19:25:42 +03:00
vraatikka
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
vraatikka
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
Massimiliano Pinto
404160908d
In mysql monitor sectio
...
the password of mdefault monitor user is:
passwd=
2013-07-26 15:21:01 +02:00
vraatikka
80b25b6270
merge
2013-07-26 15:25:00 +03:00
vraatikka
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
Jan Lindström
4fc3050ac7
Fix unnecessary defines out of code, these can be found from MySQL headers.
2013-07-26 15:21:06 +03:00
Jan Lindström
4a4383f6aa
Added servers metadata reading and writing.
2013-07-26 13:46:31 +03:00
vraatikka
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
Mark Riddoch
03e70ab78f
Addition of PDF versions of two documents
2013-07-25 17:27:05 +02:00
Jan Lindström
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
vraatikka
1c3e44d446
Removed debug fprint about failed mutex destroy.
2013-07-25 17:22:19 +03:00
vraatikka
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
Mark Riddoch
5e6ed4cafa
Addition of show monitors command, shutdown monitor and restart monitor
2013-07-25 13:13:54 +02:00
vraatikka
003db6eaa9
Added space character so that log_manager will be installed too
2013-07-25 13:36:39 +03:00
Mark Riddoch
d5b41181ec
Prevent reuse of MAXKEYS structure
2013-07-25 12:20:28 +02:00
vraatikka
49ea8ab7eb
Moved daemonization earlier to ensure that libmysqld is used by one process only.
2013-07-25 12:04:27 +03:00
Mark Riddoch
230cab7024
Fixed issue with string length in passwordEncrypt
2013-07-25 10:23:34 +02:00
vraatikka
8df4014faa
Replaced -I/usr/include/mysql with -I$(MARIADB_SRC_PATH)/include/
2013-07-24 22:52:46 +03:00