1. 15 Mar, 2022 1 commit
    • Hugo Wen's avatar
      MDEV-27342: Fix issue of recovery failure using new server id · dafc5fb9
      Hugo Wen authored
      Commit 6c39eaeb made the crash recovery dependent on server_id.
      The crash recovery could fail when restoring a new instance from
      original crashed data directory USING A NEW SERVER ID.
      
      The issue doesn't exist in previous major versions before 10.6.
      
      Root cause is when generating the input XID to be searched in the hash,
      server id is populated with the current server id.
      So if the server id changed when recovering, the XID couldn't be found
      in the hash due to server id doesn't match.
      
      This fix is to use original server id when creating the input XID
      object in function `xarecover_do_commit_or_rollback`.
      
      All new code of the whole pull request, including one or several files
      that are either new files or modified ones, are contributed under the
      BSD-new license. I am contributing on behalf of my employer Amazon Web
      Services, Inc.
      dafc5fb9
  2. 14 Mar, 2022 5 commits
  3. 12 Mar, 2022 3 commits
  4. 11 Mar, 2022 15 commits
  5. 10 Mar, 2022 7 commits
  6. 09 Mar, 2022 3 commits
    • Daniel Black's avatar
      MDEV-27936 hardware lock elision on ppc64{,le} failing to compile · e8fc62b9
      Daniel Black authored
      There is only a very small range of gcc compiler versions
      that allow the built_{htm} functions to be defined without -mhtm
      being specified as a global C{,XX}FLAGS.
      
      Because the design is centered around enable HTM only in the
      functional blocks that use it, this breaks on the inclusion
      of the htmxlintrin.h header that includes this.
      
      As a partial mitigation, extented to GNU/clang compilers,
      transaction functions gain the attribute "hot".
      
      In general the use of htm is around the optimistic
      transaction ability of the function. The key part of using the
      hot attribute is to place these functions together so that
      a maximization of icache, tlb and OS paging can ensure that
      these can be ready to execute by any thread/cpu with the
      minimum amount of overhead.
      
      POWER is particularly affected here because the xbegin/xend
      functions are not inline.
      
      srw_lock.cc requires the -mhtm cflag, both in the storage
      engine and the unit tests.
      e8fc62b9
    • Otto Kekäläinen's avatar
      c61249ee
    • Otto Kekäläinen's avatar
      Fix failing Gitlab-CI by adding pcre2-devel as a build dependency · ffb7f885
      Otto Kekäläinen authored
      The commits a73acf6c and
      4d74bac8 updated the PCRE library to a new
      version, which in turn requires CMake 3.0. That does not exist in CentOS 7
      nor 8, so builds started failing.
      
      Actually the build should not be downloading anything at all. The root
      cause was that pcre2-devel was missing from the dependencies. This was
      originally not detected, as the download fallback had masked the issue.
      ffb7f885
  7. 08 Mar, 2022 3 commits
  8. 07 Mar, 2022 3 commits