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

lock_rec_get_prev() returns only the first record lock

Details

    Description

      It's supposed that the function gets the previous lock set on a record. But if there are several locks set on a record, it will return only the first one. The bug is caused by the following commit:

      commit 21987e5919afba29a7a7a537d3567909c7b4b9ff
      Author: Marko Mäkelä <marko.makela@mariadb.com>
      Date:   Mon Feb 22 18:32:51 2021 +0200
       
          MDEV-20612 fixup: Reduce hash table lookups
      

      The function is used to fill data in the following tables:
      Information_schema.innodb_trx,
      Information_schema.innodb_locks
      Information_schema.innodb_lock_waits

      Attachments

        Issue Links

          Activity

            People

              vlad.lesin Vladislav Lesin
              vlad.lesin Vladislav Lesin
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.