Control: Severity -1 wishlist Based on replies from Daniel and Marko this code section is indeed correct. Also, based on git blame the section you suggest to be removed was not added in a MariaDB version. However, instead of closing this bug report as invalid, I leave it open as a wishlist item in case somebody would have a suggestion / upstream Pull Request / downstream Merge Request on how to rewrite it in a better way or at least how to properly document it with inline comments to avoid confusion about how it works.
Current build status and FTBFS bugs filed for mariadb-10.6 are listed at https://buildd.debian.org/status/package.php?p=mariadb-10.6 Currently PowerPC and PowerPC 64 are failing, but ppc64el is passing. Any contributions to further debug or even fix the remaining issues are naturally welcome!