Open tautrimas opened 9 years ago
Currently, BinLog parser is using decorator pattern with nested iterators.
Team pointed out, that this is a hacky solution and should be resolved by using more flat composition architecture.
For parsing bin log in blocks, this regexp could be used:
/^#([0-9\s:]*)\s.*?\send_log_pos\s([0-9]*)\s(?:.|\n)*?^# at \2$/gm
Currently, BinLog parser is using decorator pattern with nested iterators.
Team pointed out, that this is a hacky solution and should be resolved by using more flat composition architecture.