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

Obsolete sql_memdup() in favor of THD::memdup() and thd_memdup()

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 10.2.0
    • Component/s: OTHER
    • Labels:
      None

      Description

      Since sql_memdup() doesn't have THD parameter, it has to retrieve THD::mem_root by calling relatively expensive pthread_getspecific(THR_MALLOC).

      This can be optimized easily by modifying server to use THD::memdup() and modifying plugins to use thd_memdup().

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              svoj Sergey Vojtovich
              Reporter:
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: