Many InnoDB data dictionary cache operations require that the table name be copied so that it will be NUL terminated. The table name that would be read from SYS_TABLES.NAME is not guaranteed to be NUL-terminated.
Let us refactor the code so that such unnecessary copying can be avoided and the table name can be passed as const span<const char>& to those functions that need it.
This will also change some error reporting, like this:
The user-visible change is that instead of a string like `test`.`t1` the internal name `test/t1` will be reported.