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

btr_cur_pessimistic_delete() fails to shrink the index B-tree

Details

    Description

      As noted in MDEV-24653, the function btr_cur_pessimistic_delete() is neglecting the opportunity to shrink the index tree when only one sibling page would remain after btr_discard_page(). The MDEV-24653 test case creates a B-tree that consists of two pages: the root page pointing to only one child page, and a leaf page containing one hidden record.

      And as noted in MDEV-14637, when fixing this, we would have to be very careful in order to avoid introducing deadlocks.

      Attachments

        Issue Links

          Activity

            marko Marko Mäkelä created issue -
            marko Marko Mäkelä made changes -
            Field Original Value New Value
            marko Marko Mäkelä made changes -
            Roel Roel Van de Paar made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 118446 ] MariaDB v4 [ 142524 ]
            marko Marko Mäkelä made changes -
            Assignee Marko Mäkelä [ marko ] Debarun Banerjee [ JIRAUSER54513 ]

            People

              debarun Debarun Banerjee
              marko Marko Mäkelä
              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.