~kristofer-pettersson-sun/mysql-replication-listener/dev

Viewing all changes in revision 47.

  • Committer: Mats Kindahl
  • Date: 2011-08-01 19:04:09 UTC
  • Revision ID: mats.kindahl@oracle.com-20110801190409-s6lpd4dhg5s2qhgg
Patch to fix issues related to parsing transport URLs.
- Added unit tests for create_transport and
  fixed problems discovered.
- Rewrote create_transport:
  - Removed restriction to 20 characters file name.
  - Removed unnecessary dynamic memory allocation
  - Added default 3306 for port
- Fixed TCP URL parsing:
  - Empty user or hostname was accepted, which
    should not be accepted.
- Fixed file URL parsing:
  - Disallowed user and host instead of treating
    them as part of the file name.
  - File URLs according to spec accept host part,
    but we do not accept that currently.
- Binlog_file_driver::get_position() did not return
  file name correctly.
- Binlog_tcp_driver constructor initialized members
  twice. Moved initialization to initializer list.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: