mirror of
https://github.com/MariaDB/server.git
synced 2025-11-13 21:42:58 +03:00
MDEV-14222 Unnecessary 'cascade' memory allocation for every updated row when there is no FOREIGN KEY This reverts the MySQL 5.7.2 change377774689bwhich introduced these problems. MariaDB 10.2.2 inherited these problems in commit2e814d4702. The FOREIGN KEY CASCADE and SET NULL operations implemented as procedural recursion are consuming more than 8 kilobytes of stack (9 stack frames) per iteration in a non-debug GNU/Linux AMD64 build. This is why we need to limit the maximum recursion depth to 15 steps instead of the 255 that it used to be in MySQL 5.7 and MariaDB 10.2. A corresponding change was made in MySQL 5.7.21 in7b26dc98a6
78 KiB
78 KiB