Add more comments and clean up code

The binlog event processing code is now better commented and is slightly
easier to read.
This commit is contained in:
Markus Makela
2016-12-05 15:35:29 +02:00
parent 2f082cb7fb
commit f5eb4e21dc
2 changed files with 84 additions and 44 deletions

View File

@ -494,7 +494,7 @@ typedef struct router_instance
int pending_transaction; /*< Pending transaction */
enum blr_event_state master_event_state; /*< Packet read state */
REP_HEADER stored_header; /*< Relication header of the event the master is sending */
GWBUF *stored_event; /*< Partial even buffer */
GWBUF *stored_event; /*< Buffer where partial events are stored */
uint64_t last_safe_pos; /* last committed transaction */
char binlog_name[BINLOG_FNAMELEN + 1];
/*< Name of the current binlog file */