mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
cleanup: PSI key is *always* the first argument
This commit is contained in:
@@ -48,9 +48,9 @@ table_mapping::table_mapping()
|
||||
Note that below we don't test if my_hash_init() succeeded. This
|
||||
constructor is called at startup only.
|
||||
*/
|
||||
(void) my_hash_init(&m_table_ids,&my_charset_bin,TABLE_ID_HASH_SIZE,
|
||||
(void) my_hash_init(psi_key, &m_table_ids,&my_charset_bin,TABLE_ID_HASH_SIZE,
|
||||
offsetof(entry,table_id),sizeof(ulonglong),
|
||||
0,0,0, psi_key);
|
||||
0,0,0);
|
||||
/* We don't preallocate any block, this is consistent with m_free=0 above */
|
||||
init_alloc_root(psi_key, &m_mem_root, TABLE_ID_HASH_SIZE*sizeof(entry), 0, MYF(0));
|
||||
DBUG_VOID_RETURN;
|
||||
|
Reference in New Issue
Block a user