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

WSREP() appears on radar in OLTP RO

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.1
    • 10.1.21
    • Galera
    • None

    Description

      Data comes from Sandy Bridge system running sysbench OLTP RO in 1 thread against 1 table.

      Time to time I can see WSREP() macro taking considerable amount of time. Since it is used quite frequently I'd suggest to optimize it a bit. Original macro is as following:

      #define WSREP_ON \
        (global_system_variables.wsrep_on)
       
      #define WSREP(thd) \
        (WSREP_ON && wsrep && (thd && thd->variables.wsrep_on))

      • there should be no need to check "thd" - in most (if not all) cases it should be available
      • there should be no need to check "wsrep" - make sure it is set inline with wsrep_on
      • there should be no need to check "global_system_variables.wsrep_on"

      This leaves

      #define WSREP(thd) (thd)->variables.wsrep_on

      Attachments

        Issue Links

          Activity

            People

              sachin.setiya.007 Sachin Setiya (Inactive)
              svoj Sergey Vojtovich
              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.