Changed from router->binlog_lock to router->lock for transaction safety code and cleaned up code.

This commit is contained in:
Markus Makela
2015-10-23 14:54:08 +03:00
parent 40ffe21dd8
commit 63f4bc3aec
5 changed files with 121 additions and 115 deletions

View File

@ -34,6 +34,7 @@
* 23/06/15 Massimiliano Pinto Addition of MASTER_SERVER_CFG struct
* 24/06/15 Massimiliano Pinto Added BLRM_UNCONFIGURED state
* 05/08/15 Massimiliano Pinto Initial implementation of transaction safety
* 23/10/15 Markus Makela Added current_safe_event
*
* @endverbatim
*/
@ -415,8 +416,8 @@ typedef struct router_instance {
* file being written
*/
uint64_t last_written; /*< Position of last event written */
uint64_t current_safe_event;
/*< Position of the latest safe eventbeing sent to slaves */
uint64_t current_safe_event;
/*< Position of the latest safe event being sent to slaves */
char prevbinlog[BINLOG_FNAMELEN+1];
int rotating; /*< Rotation in progress flag */
BLFILE *files; /*< Files used by the slaves */