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

Use atomic memory access for purge_sys

    XMLWordPrintable

Details

    Description

      This refactoring is motivated by MDEV-13987 and MDEV-11802.

      The variables purge_sys.state and purge_sys.running are sometimes being read without proper protection, and sometimes read while unnecessarily holding purge_sys.latch exclusively. It is cleaner to use a combination of purge_sys.latch and atomic memory access for writes, so that reads can use either protection.

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 3h
                  3h

                  Git Integration

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