1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/mysql-test/suite/innodb/r
Marko Mäkelä 525e79b057 MDEV-19022: InnoDB fails to cleanup useless B-tree pages
The test case for reproducing MDEV-14126 demonstrates that InnoDB can
end up with an index tree where a non-leaf page has only one child page.

The test case innodb.innodb_bug14676111 demonstrates that such pages
are sometimes unavoidable, because InnoDB does not implement any sort
of B-tree rotation.

But, there is no reason to allow a root page with only one child page.

btr_cur_node_ptr_delete(): Replaces btr_node_ptr_delete().

btr_page_get_father(): Declare globally.

btr_discard_only_page_on_level(): Declare with ATTRIBUTE_COLD.
It turns out that this function is not covered by the
innodb.innodb_bug14676111 test case after all.

btr_discard_page(): If the root page ends up having only one child
page, shrink the tree by invoking btr_lift_page_up().
2019-03-25 16:03:24 +02:00
..
2014-08-02 21:26:16 +02:00
2019-03-12 13:11:07 +02:00
2017-02-10 06:30:42 -05:00
2011-07-02 22:08:51 +02:00
2017-02-10 06:30:42 -05:00
2017-04-06 09:52:25 +03:00
2017-04-17 03:18:21 +03:00
2017-10-25 17:17:21 +03:00
2017-10-25 17:17:21 +03:00
2018-12-29 11:05:26 +02:00
2018-06-06 11:25:33 +03:00
2018-08-02 08:19:57 +03:00
2016-12-30 13:48:22 +02:00
2017-02-10 06:30:42 -05:00
2018-02-08 13:53:21 +02:00
2018-02-08 13:53:21 +02:00
2017-02-10 06:30:42 -05:00