Details

    • Technical task
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.5
    • None
    • Replication
    • None

    Description

      We use %u-%u-%llu to format GTID fields in my_/snprintf.
      But GTIDs use fixed integer sizes since merge, while %u and %llu technically varies by platform.

      We should define a platform-agnostic printf format and apply it throughout the codebase.
      It could be…

      … a macro that complements PARAM_GTID – naming candidates are:

      (I prefer the Standard style because we should phase out InnoBase’s extra typedefs in favor of standardized ones (MDEV-35460).)

      … a function – a method of rpl_gtid?

      … a custom my_snprintf format extension – %pG?

      This implementation is the only one of the three that sql/share/errmsg-utf8.txt gets to utilize.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ParadoxV5 Jimmy Hú
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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