Jan Lindström
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
vraatikka
c84f4e099a
Replaced hard-coded path with $(HOME)/...
2013-07-22 21:50:15 +03:00
Mark Riddoch
bce6f88efe
Add depend make target and resolve conflict in query_classifier.cc
2013-07-19 15:05:21 +02:00
Massimiliano Pinto
b9098e04a9
Most fprintf commented
2013-07-18 14:06:15 +02:00
Mark Riddoch
53c6d6daa6
Updates for make install rules
2013-07-17 13:31:18 +02:00
Mark Riddoch
7e7737af05
Addition of top level Makefile
2013-07-16 16:47:20 +02:00
Jan Lindström
427fee618a
Fixes to MySQL GTID handling. Still can't execute COM_BINLOG_DUMP_GTID.
2013-07-12 12:30:24 +03:00
Jan Lindström
59b0eee999
Changed the test to use libmysqld
2013-07-11 06:45:49 +03:00
Jan Lindström
ab294a18f0
Fix linker problems and add mysql_server_init for test program
2013-07-10 18:05:50 +03:00
Jan Lindström
83de4c4458
Remove unused files
2013-07-10 17:09:08 +03:00
Jan Lindström
1a7fcd34f8
Changed to use libmysqld and fixed the linker options
2013-07-10 17:08:25 +03:00
vraatikka
e8264d0228
Added print macro for mysql packet type
2013-07-10 13:20:24 +03:00
vraatikka
3159477a15
Merge
2013-07-09 12:14:33 +03:00
vraatikka
3d3ba6f986
Division by zero :-)
2013-07-09 12:13:34 +03:00
vraatikka
294613aece
Fixed CFLAGS issue which overwrote previously specified includes.
2013-07-09 12:10:54 +03:00
Jan Lindström
c5b2b6c759
Remove unnecessary files
2013-07-04 19:03:03 +03:00
Jan Lindström
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
Jan Lindström
15213f3680
Delete unnecessary files
2013-07-04 09:29:46 +03:00
Jan Lindström
099af601bf
Added support for MySQL GTID event
2013-07-04 09:27:57 +03:00
Jan Lindström
189b9e64e6
Remove unnecessary files
2013-07-03 11:43:39 +03:00
Jan Lindström
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
vraatikka
bce2573c21
Fixed bug which tried to access list without mutex.
2013-07-02 18:04:00 +03:00
vraatikka
6abd9dbdaa
Added profile counters: writebuffer init, done, total and recycle counts.
2013-07-02 16:53:23 +03:00
vraatikka
c2be579cae
Merge
2013-07-02 15:16:51 +03:00
vraatikka
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
Jan Lindström
e64a141134
Added very simple parser for table replication listener for statement based replication.
2013-07-02 14:11:26 +03:00
Jan Lindström
9ca66dccf1
Test
2013-07-02 07:11:43 +03:00
Jan Lindström
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
Jan Lindström
b51232c518
Fixed issues on linking and namespaces. Added example
2013-07-01 12:19:02 +03:00
vraatikka
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
vraatikka
89a744c8e5
Removed double typedef
2013-06-28 10:23:30 +03:00
vraatikka
1b764eba74
Little fixes
2013-06-27 23:33:20 +03:00
vraatikka
33632968a8
Fixed typo which failed DEBUG=Y compilation
2013-06-27 17:41:06 +03:00
vraatikka
b26315cf24
Can't compile product version.
2013-06-27 16:54:54 +03:00
vraatikka
5c271e1925
Fixed clean-up processes in cases where initialization fails arbitrarily in the middle of startup. Added four descriptive states : UNINIT, INIT, RUN, DONE for flat stucts inside logmanager. Flat structs always have the state which tells what needs to be fred, if any.
2013-06-27 16:43:01 +03:00
vraatikka
9630ae588e
Fixed bugs and cleaned code
2013-06-27 12:18:25 +03:00
vraatikka
70b19a0481
Fixed printing issues.
2013-06-26 23:43:57 +03:00
vraatikka
2b8c62a7da
Added a few more testcases to increase IO and added debug printing for file handling.
2013-06-26 23:40:07 +03:00
vraatikka
b74423121f
Removed references to epoll code.
2013-06-26 23:26:21 +03:00
vraatikka
c8831f0a89
I didn't know these even existed in bazaar. Now they are removed.
2013-06-26 23:18:36 +03:00
vraatikka
ef1d198654
Changed log manager API so that pointer reference to logmanager is not used anymore. Every call initializes logmanager now except skygw_logmanager_done and skygw_log_flush.
...
skygw_logmanager_init is still useful because it allows for providing memory address for log manager where it can store a list of preallocated write buffers. TBD.
Logmanager access is now protected with spinlock familiar from epoll/core/spinlock.c . It is modified to avoid trashing; misses are counted and every tenth subsequent lock acquiring attempt triggers short random sleep.
2013-06-26 23:13:40 +03:00
vraatikka
2ea8e2a05a
Added licences and changed the use of zero-length arrays due to compiler problems.
2013-06-26 09:39:38 +03:00
vraatikka
b82ee51b7a
Tiny changes, more tests.
2013-06-25 22:13:48 +03:00
vraatikka
3ae8727582
Removed old version. New is log_manager
2013-06-25 21:14:52 +03:00
vraatikka
8178e4e239
New, yet primitive version of log writing functionality. Fixed some things in utils.
2013-06-25 21:14:03 +03:00
Jan Lindström
33b5d9c62b
Added missing files from table replication consistency
2013-06-21 09:13:06 +03:00
Jan Lindström
bc3a104e3f
Added replicaton listener library from https://github.com/SponsorPay/mysql-replication-listener and first prototype implementation for table replication consistency module
2013-06-21 09:11:57 +03:00
vraatikka
0fed3d624e
Separated libmysqld apart from other libs because it is not used in every case
2013-06-18 21:28:56 +03:00
vraatikka
a7229a6c24
Separated libmysqld from list of libs which is used in every link command line.
2013-06-18 21:28:06 +03:00
vraatikka
c5889b606a
First version of log_writer and test. Includes objects : logfile, filewriter. Routines : skygw_message_t, simple_mutex.
...
Actual file handling is missing and some clean-up routines as well.
Compiles and runs but doesn't do much.
2013-06-18 21:17:20 +03:00