mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-17803: ulonglongization of table_mapping entry::table_id to fix windows compilation in particular.
This commit is contained in:
@ -43,7 +43,7 @@ table_mapping::table_mapping()
|
||||
constructor is called at startup only.
|
||||
*/
|
||||
(void) my_hash_init(&m_table_ids,&my_charset_bin,TABLE_ID_HASH_SIZE,
|
||||
offsetof(entry,table_id),sizeof(ulong),
|
||||
offsetof(entry,table_id),sizeof(ulonglong),
|
||||
0,0,0);
|
||||
/* We don't preallocate any block, this is consistent with m_free=0 above */
|
||||
init_alloc_root(&m_mem_root, TABLE_ID_HASH_SIZE*sizeof(entry), 0, MYF(0));
|
||||
@ -59,20 +59,20 @@ table_mapping::~table_mapping()
|
||||
free_root(&m_mem_root, MYF(0));
|
||||
}
|
||||
|
||||
TABLE* table_mapping::get_table(ulong table_id)
|
||||
TABLE* table_mapping::get_table(ulonglong table_id)
|
||||
{
|
||||
DBUG_ENTER("table_mapping::get_table(ulong)");
|
||||
DBUG_PRINT("enter", ("table_id: %lu", table_id));
|
||||
DBUG_PRINT("enter", ("table_id: %llu", table_id));
|
||||
entry *e= find_entry(table_id);
|
||||
if (e)
|
||||
{
|
||||
DBUG_PRINT("info", ("tid %lu -> table 0x%lx (%s)",
|
||||
DBUG_PRINT("info", ("tid %llu -> table 0x%lx (%s)",
|
||||
table_id, (long) e->table,
|
||||
MAYBE_TABLE_NAME(e->table)));
|
||||
DBUG_RETURN(e->table);
|
||||
}
|
||||
|
||||
DBUG_PRINT("info", ("tid %lu is not mapped!", table_id));
|
||||
DBUG_PRINT("info", ("tid %llu is not mapped!", table_id));
|
||||
DBUG_RETURN(NULL);
|
||||
}
|
||||
|
||||
@ -102,10 +102,10 @@ int table_mapping::expand()
|
||||
return 0;
|
||||
}
|
||||
|
||||
int table_mapping::set_table(ulong table_id, TABLE* table)
|
||||
int table_mapping::set_table(ulonglong table_id, TABLE* table)
|
||||
{
|
||||
DBUG_ENTER("table_mapping::set_table(ulong,TABLE*)");
|
||||
DBUG_PRINT("enter", ("table_id: %lu table: 0x%lx (%s)",
|
||||
DBUG_PRINT("enter", ("table_id: %llu table: 0x%lx (%s)",
|
||||
table_id,
|
||||
(long) table, MAYBE_TABLE_NAME(table)));
|
||||
entry *e= find_entry(table_id);
|
||||
@ -133,13 +133,13 @@ int table_mapping::set_table(ulong table_id, TABLE* table)
|
||||
DBUG_RETURN(ERR_MEMORY_ALLOCATION);
|
||||
}
|
||||
|
||||
DBUG_PRINT("info", ("tid %lu -> table 0x%lx (%s)",
|
||||
DBUG_PRINT("info", ("tid %llu -> table 0x%lx (%s)",
|
||||
table_id, (long) e->table,
|
||||
MAYBE_TABLE_NAME(e->table)));
|
||||
DBUG_RETURN(0); // All OK
|
||||
}
|
||||
|
||||
int table_mapping::remove_table(ulong table_id)
|
||||
int table_mapping::remove_table(ulonglong table_id)
|
||||
{
|
||||
entry *e= find_entry(table_id);
|
||||
if (e)
|
||||
|
Reference in New Issue
Block a user