ongr-archive / ConnectionsBundle

DEPRECATED, USE API INSTEAD
MIT License
1 stars 14 forks source link

[binlog] Refactor binlog parsing by removing decorator pattern #75

Open tautrimas opened 9 years ago

tautrimas commented 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.

trylika commented 9 years ago

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