Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-21766

Forbid XID with empty 'gtrid'

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 10.5.2
    • XA
    • None

    Description

      XID that has empty 'gtrid' or 'bqual' is not permitted by the XA spec

      struct xid_t {
      long formatID;
       /∗ format identifier ∗/
      long gtrid_length; /∗ value 1-64 ∗/
      long bqual_length; /∗ value 1-64 ∗/
      char data[XIDDATASIZE];
      };
      typedef struct xid_t XID;
      
      

      but is accepted. E.g

      --error 0
      XA START '',''
      

      Notice that in the following both

      XA START 'something'; /* or */
      XA START 'something','';
      

      bqual remains empty which is OK.

      Attachments

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              Elkin Andrei Elkin
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.