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

            There are no comments yet on this issue.

            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.