question about Revision #f24038b851
![](https://secure.gravatar.com/avatar/0f6dca05754c07690164183e3b9e50e0.jpg?s=120&d=mm&r=g)
hi, there, when I check release notes, https://mariadb.com/kb/en/mariadb-10419-changelog/ <https://mariadb.com/kb/en/mariadb-10419-changelog/ > I notice this commit record, Revision #f24038b851 2021-03-07 14:06:01 +0100 mark Aria allocations for temp tables as MY_THREAD_SPECIFIC but, it can not find in the jira system, can't learn more detail/background about this commit, could anyone help with it, may we know which task refer to this commit? https://github.com/MariaDB/server/commit/f24038b851 <https://github.com/MariaDB/server/commit/f24038b851 > Thank you. hi, there, when I check release notes, https://mariadb.com/kb/en/mariadb-10419-changelog/ <https://mariadb.com/kb/en/mariadb-10419-changelog/ > I notice this commit record, Revision #f24038b851 2021-03-07 14:06:01 +0100 mark Aria allocations for temp tables as MY_THREAD_SPECIFIC but, it can not find in the jira system, can't learn more detail about this commit, could anyone help with it, may we know which task refer to this commit? https://github.com/MariaDB/server/commit/f24038b851 <https://github.com/MariaDB/server/commit/f24038b851 > Thank you.
![](https://secure.gravatar.com/avatar/39b623a1559cf9c69ac3d9d4fb44e7fe.jpg?s=120&d=mm&r=g)
Hi, ShawnYan, On Mar 30, ShawnYan via developers wrote:
hi, there, when I check release notes, https://mariadb.com/kb/en/mariadb-10419-changelog/ I notice this commit record, Revision #f24038b851 2021-03-07 14:06:01 +0100 mark Aria allocations for temp tables as MY_THREAD_SPECIFIC but, it can not find in the jira system, can't learn more detail/background about this commit, could anyone help with it, may we know which task refer to this commit? https://github.com/MariaDB/server/commit/f24038b851 Thank you.
MariaDB internally distinguishes "global" and "thread-local" memory
allocations for the purpose of memory accounting.
For "global" allocations the memory can be allocated in one thread and
freed in another. A query cache, for example, is global.
"local" allocations always owned by a specific thread. Temporary tables,
for example, are always thread-local.
That commit marks all allocations for Aria temporary tables to be
thread-local.
Why it was done at that point in time? The following commit is
commit 01a0d739c8f
Author: Sergei Golubchik
participants (2)
-
Sergei Golubchik
-
ShawnYan