mirror of
https://github.com/MariaDB/server.git
synced 2025-12-01 17:39:21 +03:00
The old code used pthread_setspecific() to store temporary data used by the thread. This is not safe when used with thread pool, as the thread may change for the transaction. The fix is to save the data in THD, which is guaranteed to be properly freed. I also fixed the code so that we don't do a malloc() for every transaction.
15 KiB
15 KiB