Commit Graph

88 Commits

Author SHA1 Message Date
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
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
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
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
003db6eaa9 Added space character so that log_manager will be installed too 2013-07-25 13:36:39 +03:00
602bd33378 Fix incorrect change 2013-07-24 15:51:39 +03:00
2fc7cb5525 Fixed issues on compiling and linking the library against example and test 2013-07-24 15:49:36 +03:00
521a66f9c1 Fix for redefinition of MIN and MAX macros 2013-07-23 13:19:36 +02:00
5439f01adb Merge 2013-07-23 08:36:26 +03:00
baed0e846f Changed log_manager to use block-siuze buffers instead of small write buffers. Added new test cases and added iterations. Added possibility to test with dummy disk write which sleeps constantly for 5ms instead of performing disk write. 2013-07-23 08:34:43 +03:00
f7ddfa73bf Fixed some issues on GTID implementation and added support for storing table replication consistency metadata on MySQL server. 2013-07-23 07:44:28 +03:00
c84f4e099a Replaced hard-coded path with $(HOME)/... 2013-07-22 21:50:15 +03:00
bce6f88efe Add depend make target and resolve conflict in query_classifier.cc 2013-07-19 15:05:21 +02:00
b9098e04a9 Most fprintf commented 2013-07-18 14:06:15 +02:00
53c6d6daa6 Updates for make install rules 2013-07-17 13:31:18 +02:00
7e7737af05 Addition of top level Makefile 2013-07-16 16:47:20 +02:00
427fee618a Fixes to MySQL GTID handling. Still can't execute COM_BINLOG_DUMP_GTID. 2013-07-12 12:30:24 +03:00
59b0eee999 Changed the test to use libmysqld 2013-07-11 06:45:49 +03:00
ab294a18f0 Fix linker problems and add mysql_server_init for test program 2013-07-10 18:05:50 +03:00
83de4c4458 Remove unused files 2013-07-10 17:09:08 +03:00
1a7fcd34f8 Changed to use libmysqld and fixed the linker options 2013-07-10 17:08:25 +03:00
e8264d0228 Added print macro for mysql packet type 2013-07-10 13:20:24 +03:00
3159477a15 Merge 2013-07-09 12:14:33 +03:00
3d3ba6f986 Division by zero :-) 2013-07-09 12:13:34 +03:00
294613aece Fixed CFLAGS issue which overwrote previously specified includes. 2013-07-09 12:10:54 +03:00
c5b2b6c759 Remove unnecessary files 2013-07-04 19:03:03 +03:00
76d74e8aa2 Fixed MySQL GTID events to print out the SID as hexadesimal representation to make it more readable 2013-07-04 19:02:11 +03:00
15213f3680 Delete unnecessary files 2013-07-04 09:29:46 +03:00
099af601bf Added support for MySQL GTID event 2013-07-04 09:27:57 +03:00
189b9e64e6 Remove unnecessary files 2013-07-03 11:43:39 +03:00
c363b83930 Fixed problems on connecting and authenticating to Oracle MySQL server. Fixed error on server type logic. 2013-07-03 11:42:12 +03:00
bce2573c21 Fixed bug which tried to access list without mutex. 2013-07-02 18:04:00 +03:00
6abd9dbdaa Added profile counters: writebuffer init, done, total and recycle counts. 2013-07-02 16:53:23 +03:00
c2be579cae Merge 2013-07-02 15:16:51 +03:00
d11741130d Changed log manager API to support variable length formatted log strings. New API is as follows:
/** No change in these */
bool skygw_logmanager_init(void** buf, int argc, char* argv[]);
void skygw_logmanager_done(void** buf);
void skygw_logmanager_exit(void);
int  skygw_log_flush(logfile_id_t id);

/** writebuf remains unused, but formatted string is now possible and in case 
 * of formatted string, arbitrary long argument list is supported too. Max 
 * length for a log string is defined to BUFSIZ, whose value depends on the 
 * system but typically is 4/8KB.
 */
int  skygw_log_write(void* writebuf, logfile_id_t id, char* format, ...);
int  skygw_log_write_flush(void* writebuf, logfile_id_t id, char* format, ...);

makefile.inc includes new CFLAG : SS_PROF, which is set if PROF=Y on make command line or in build_gateway.inc .
ss_debug.h includes corresponding ss_prof(exp) macro which equals to exp if SS_PROF is defined and to empty if in other case.

mlist_t now includes datadel function which is a callback and it is executed for mlnode_data on node exit.
2013-07-02 14:46:39 +03:00
e64a141134 Added very simple parser for table replication listener for statement based replication. 2013-07-02 14:11:26 +03:00
9ca66dccf1 Test 2013-07-02 07:11:43 +03:00
471b3cbaf2 Fixed bug on memory allocation for string types and fixed linker problem on example main program 2013-07-02 07:09:44 +03:00
b51232c518 Fixed issues on linking and namespaces. Added example 2013-07-01 12:19:02 +03:00
1888b8a517 Prevented redefinition of bool, added function void skygw_logmanager_exit(void) to be called by atexit 2013-06-28 11:39:00 +03:00
89a744c8e5 Removed double typedef 2013-06-28 10:23:30 +03:00
1b764eba74 Little fixes 2013-06-27 23:33:20 +03:00