Hi Sergei, Thanks for your comments.
As you like. You can do MDEV-31401 or work around the issue with, for example
BEGIN NOT ATOMIC DECLARE EXIT HANDLER FOR 1123 INSERT mysql.func (...), (...), ...; CREATE FUNCTION ...; CREATE FUNCTION ...; CREATE FUNCTION ...; CREATE FUNCTION ...; END;
just don't add new spider-specific global variables to the server.
How about renaming and exporting an existing variable, like in https://github.com/MariaDB/server/commit/74afa221807? Does that also count as adding a new spider-specific global variable to the server?
Done. The HA_ERR_ namespace is tightly packed and bounded by HA_ERR_FIRST (120) and HA_ERR_LAST (198), and I crammed in a #define HA_ERR_RETRY_INIT 129.
It's not tightly packed, HA_ERR_LAST is just a high water mark. You can add a new HA_ERR_ at the end and increment HA_ERR_LAST.
But 129 works too, that's fine.
Ack. Best, Yuchen