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

return current transaction id in commit command reponpse

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Fix Version/s: N/A
    • Component/s: None
    • Labels:
      None

      Description

      I can't find informaction about how to get current transaction id ,but this is useful when used in GTID faillover, I can save latest success transaction related sql in memory and when write node crashed ,I can re commit this trasaction in slave ,so I wan't to get current transaction id ,the best way maybe return it in OKPackage of commit response .

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            Unfortunately, this doesn't seem to be possible. GTID is assigned to a transaction when it commits. Before that the gtid of a transaction is not known yet.

            Show
            serg Sergei Golubchik added a comment - Unfortunately, this doesn't seem to be possible. GTID is assigned to a transaction when it commits. Before that the gtid of a transaction is not known yet.

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                mycat mycat
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: