Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-325

Replication API / Binary log interface

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • N/A
    • 3.1.0, 3.1.1
    • None
    • None

    Description

      Provide an replication API for the binary log interface:

      MARIADB_RPL *mariadb_rpl_init(void);
      int mariadb_rpl_optionv(MARIADB_RPL *, enum rpl_option, ...);
      int mariadb_rpl_open(MYSQL *, MARIADB_RPL *);
      void mariadb_rpl_close(MARIADB_RPL *);
      int mariadb_rpl_fetch(MYSQL *, MARIADB_RPL *);
      void mariadb_free_rpl_event(MARIADB_RPL_EVENT *event);
      

      Attachments

        Issue Links

          Activity

            There is nor mariadb_rpl.c in sources cloned from git. Please, add it to repo.

            jsiebert Jarosław Siebert added a comment - There is nor mariadb_rpl.c in sources cloned from git. Please, add it to repo.
            georg Georg Richter added a comment -

            Thanks for the hint - fixed!

            georg Georg Richter added a comment - Thanks for the hint - fixed!
            bluebike Jukka Pihl added a comment -

            Had a look on feature...

            I there any further work going on it this?

            Some things about current status...

            • Fixed header lengths are not taken from Description event and
              event parsing is not divided between fixed+variables parts.
              This would enable some compatibility between versions (I think).
            • QUERY event status variable block is not parsed.
              This could be separate parsing (from binary log) from event structure.
            • No support for different charsets. Events are not always in client's character set.
              Should conversion be done automatically by library?
            • No any kind bound checking when reading events.
              Something like CHECK_SPACE in log_event.cc I guess.
            • better split mariadb_rpl_fetch-method to smaller pieces for easier unit testing.
              Function is "hardcoded" to ma_net_safe_read.
            • ROW replication TABLE_MAP parsing totally missing so far..

            I could do some of these things or is there something already happening somewhere?

            bluebike Jukka Pihl added a comment - Had a look on feature... I there any further work going on it this? Some things about current status... Fixed header lengths are not taken from Description event and event parsing is not divided between fixed+variables parts. This would enable some compatibility between versions (I think). QUERY event status variable block is not parsed. This could be separate parsing (from binary log) from event structure. No support for different charsets. Events are not always in client's character set. Should conversion be done automatically by library? No any kind bound checking when reading events. Something like CHECK_SPACE in log_event.cc I guess. better split mariadb_rpl_fetch-method to smaller pieces for easier unit testing. Function is "hardcoded" to ma_net_safe_read . ROW replication TABLE_MAP parsing totally missing so far.. I could do some of these things or is there something already happening somewhere?

            People

              georg Georg Richter
              georg Georg Richter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.