Johan Wikman
e9755ba2b6
Remove file from slave
...
The binlog file is now always opened when it is needed and closed
when we are finished with it. That will remove any potential
file concurrency issues between different threads dealing with
the same slave.
2015-12-29 09:47:37 +02:00
Markus Makela
9a3aae64ce
Replaced explicit closeSession calls with dcb_close
...
The closeSession entry point shouldn't be called directly and dcb_close
should be used instead.
2015-12-10 15:50:20 +02:00
Johan Wikman
1deea7f929
Remove unnecessary comparison.
...
It makes no sense to compare an unsigned integer for non-negativeness;
it won't ever be. router_instance.lastEventReceived is uint8_t.
On centos5 this causes a warning that thus ends the compilation.
2015-12-08 13:28:11 +02:00
MassimilianoPinto
7119ed817d
Transaction safety default is off in binlog router
...
Transaction safety default is off in binlog router
2015-12-02 11:18:12 +01:00
MassimilianoPinto
dd922a1ff9
Added check for missing service listener
...
Added check for missing service listener
2015-11-26 17:00:30 +01:00
MassimilianoPinto
99fdf9cdec
Fixed reference to LOGIF macro
...
Fixed reference to LOGIF macro
2015-11-19 17:54:23 +01:00
MassimilianoPinto
023d4bc588
Develop merge
...
Develop merge
2015-11-19 17:06:30 +01:00
Johan Wikman
afdeb6fa5b
binlogrouter: All LOGIFs and skygw_log_writes replaced.
...
All LOGIFs and skygw_log_writes replaced with the equivalent
MXS_[ERROR|WARNING|NOTICE|INFO|DEBUG] macros.
2015-11-18 12:35:21 +02:00
MassimilianoPinto
f06eec13f6
Merge branch 'develop' into 1.2.1-binlog_router_trx
2015-11-17 09:50:25 +01:00
Johan Wikman
a355e1beef
Printf format checking added to logging function.
...
Printf format checking added to logging function and all
issues that were revealed by that fixed.
2015-11-16 12:40:49 +02:00
Markus Makela
6b88b6b17f
Merge branch 'develop' into MXS-329-develop-20151111
2015-11-13 07:48:59 +02:00
Markus Makela
30d1fc66b7
getCapabilities no longer takes arguments and returns an int.
2015-11-11 18:14:03 +02:00
Markus Makela
264944ff23
Service users are set to NULL after they are freed.
2015-11-11 18:02:01 +02:00
MassimilianoPinto
8395bad394
Added slave remote port in log messages
...
Added slave remote port in log messages
2015-11-11 12:19:58 +01:00
counterpoint
dee20fe077
Merge remote-tracking branch 'origin/develop' into MXS-329-develop-20151111
...
# Conflicts:
# server/core/CMakeLists.txt
# server/core/buffer.c
# server/core/service.c
# server/modules/filter/tee.c
# server/modules/monitor/mysql_mon.c
# server/modules/routing/binlog/blr.c
# server/modules/routing/binlog/blr_slave.c
# server/modules/routing/debugcmd.c
# server/modules/routing/readwritesplit/readwritesplit.c
# utils/skygw_utils.cc
- resolved.
2015-11-11 11:08:02 +00:00
MassimilianoPinto
5e71ff093f
Log message updates
...
Log message updates
2015-11-06 18:28:41 +01:00
Johan Wikman
834a88aeda
Log variables moved to log_manager.h
...
The log manager variables lm_enabled_log_files_bitmask, log_ses_count
and tls_log_info that earlier were declared separately in every
c-file are now declared in the log_manager.h header.
2015-11-04 14:26:53 +02:00
MassimilianoPinto
d7d009f3b3
Merge from develop
...
Merge from develop
2015-10-28 09:38:31 +01:00
MassimilianoPinto
a718c995ae
Added blr_print_binlog_details
...
Added blr_print_binlog_details
2015-10-27 17:33:15 +01:00
counterpoint
bad61b0740
Change binlog router to indicate it does not use router sessions via the getCapabilities interface.
2015-10-27 14:17:06 +00:00
MassimilianoPinto
8208f3a728
strerror_r update
...
strerror_r update
2015-10-23 18:44:39 +02:00
Markus Makela
4b923ce4bc
Merge branch '1.2.1-binlog_router_trx' of https://github.com/mariadb-corporation/MaxScale into 1.2.1-binlog_router_trx
2015-10-23 16:44:21 +03:00
Markus Makela
3be5238bd7
Fixed indentation.
2015-10-23 15:05:51 +03:00
Markus Makela
63f4bc3aec
Changed from router->binlog_lock to router->lock for transaction safety code and cleaned up code.
2015-10-23 14:54:08 +03:00
MassimilianoPinto
1dc48f5ed8
Merge branch 'develop' into 1.2.1-binlog_router_trx
2015-10-23 13:18:11 +02:00
Markus Makela
40ffe21dd8
Added a variable for current event being processed after a transaction is committed.
2015-10-23 12:33:51 +03:00
Johan Wikman
add1927781
Reformatted to make line-length < 110.
2015-10-21 09:46:52 +03:00
Markus Makela
eeefd73623
Changed sprintf format to use %02hhx instead of %02x.
2015-10-20 16:20:54 +03:00
Markus Makela
9b65e0b8b6
Fixed compiler warnings.
2015-10-14 10:58:32 +03:00
MassimilianoPinto
62477c5760
Changed log message for trx_safe set to ON
...
Changed log message for trx_safe set to ON
2015-10-02 19:14:47 +02:00
MassimilianoPinto
78252fcb78
Message logs changed for slave request errors
...
Log messages changed for slave request errors
2015-10-02 18:30:19 +02:00
MassimilianoPinto
e043d204b4
blr_send_custom_error with errno and state
...
blr_send_custom_error with errno and state
2015-09-30 15:59:48 +02:00
MassimilianoPinto
680589ed46
Slave heartbeat period is reported in diagnostics
...
Slave heartbeat period is reported in diagnostics only if router option
is set
2015-09-30 15:21:18 +02:00
MassimilianoPinto
f9ee9ca028
Addition of send_slave_heartbeat option
...
Addition of send_slave_heartbeat option
2015-09-30 14:39:26 +02:00
MassimilianoPinto
b6df52a68e
Addition of slave heartbeat check
...
Addition of slave heartbeat check
2015-09-25 15:58:36 +02:00
Markus Makela
2dfb9e3c11
Merge branch 'develop' into MXS-329
2015-09-24 17:59:36 +03:00
MassimilianoPinto
f7946a05fa
Fix in extract_message
...
Fix in extract_message
2015-09-23 14:05:02 +02:00
MassimilianoPinto
ef15825efb
Fixes suggested by Valgrind tool
...
Fixes suggested by Valgrind tool
2015-09-23 11:46:00 +02:00
MassimilianoPinto
9829a8c2c2
Added: validating binlog file message
...
Added: validating binlog file message
2015-09-16 19:04:48 +02:00
MassimilianoPinto
6b05176684
Fixed errors reported by valgrind
...
Fixed errors reported by valgrind
2015-09-15 15:49:41 +02:00
MassimilianoPinto
abf5b6d02a
Addition of status variable output formatting
...
Addition of status variable output formatting and router options check
and check for mandatory server_id parameter
Logging of binlog router identy seen by master and slaves
2015-09-15 15:13:05 +02:00
counterpoint
cfeaf7d6e9
Merge remote-tracking branch 'origin/develop' into MXS-329
...
Conflicts:
server/core/session.c
2015-09-10 13:07:27 +01:00
counterpoint
f6916a23bd
Move responsibility for closing DCB on error to router error handling. Check that routers remove or disable links to closed DCB.
2015-09-09 09:33:00 +01:00
counterpoint
986c918d52
Remove ERRACT_RESET action from router error handler; remove sole call from mysql_client. Correct comments on parameters for router error handlers.
2015-09-09 08:31:59 +01:00
Johan Wikman
160bbb70ee
MXS-251: strerror
...
Replaces all calls to strerror with calls to strerror_r. The former
is non-thread safe while the latter is.
2015-09-05 15:52:13 +03:00
MassimilianoPinto
1731a90fad
Fix for lastEventTimestamp localtime
...
Fix for lastEventTimestamp localtime computation
2015-08-25 11:37:17 +02:00
MassimilianoPinto
3fe0c074c5
Added strerror_r and new constants
...
Added strerror_r and new constants
2015-08-24 15:02:22 +02:00
MassimilianoPinto
599e2fdc6c
Small improvements for string buffers
...
Small improvements an constants added in string buffers
2015-08-24 11:38:24 +02:00
MassimilianoPinto
e103aa46a8
Addition of BLR_TYPE_STRING and BLR_TYPE_INT
...
Addition of BLR_TYPE_STRING and BLR_TYPE_INT for SQL variable names
replies
2015-08-24 10:11:26 +02:00
MassimilianoPinto
4242d28e13
Added support for new options
...
Added support for new options:
master_uuid, master_hostname, master_version
If set, those values will be sent to slaves instead of
saved master responses
2015-08-21 16:31:40 +02:00