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

Avoid background_thread variable usage in ha_innobase::open()

    XMLWordPrintable

Details

    Description

      The current implementation of ha_innobase::open relies on a thread-local variable (background_thread) to determine if a table is being opened for background virtual column purging. This approach is brittle and potentially problematic . We should replace this with a dedicated handler flag, HA_OPEN_FOR_INNODB_PURGE, to explicitly signal when metadata initialization (like auto-increment) should be skipped.

      The reliance on THDVAR(thd, background_thread) inside ha_innobase::open is a side-effect-heavy way to detect the purge thread.

      Attachments

        Issue Links

          Activity

            People

              thiru Thirunarayanan Balathandayuthapani
              thiru Thirunarayanan Balathandayuthapani
              Thirunarayanan Balathandayuthapani Thirunarayanan Balathandayuthapani
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.