1
0
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:
Andrei Elkin
2019-01-24 16:57:29 +02:00
parent 5d48ea7d07
commit ef0b91ea94
3 changed files with 16 additions and 16 deletions

View File

@ -70,10 +70,10 @@ public:
table_mapping();
~table_mapping();
TABLE* get_table(ulong table_id);
TABLE* get_table(ulonglong table_id);
int set_table(ulong table_id, TABLE* table);
int remove_table(ulong table_id);
int set_table(ulonglong table_id, TABLE* table);
int remove_table(ulonglong table_id);
void clear_tables();
ulong count() const { return m_table_ids.records; }
@ -83,14 +83,14 @@ private:
it, which only works for PODs)
*/
struct entry {
ulong table_id;
ulonglong table_id;
union {
TABLE *table;
entry *next;
};
};
entry *find_entry(ulong table_id)
entry *find_entry(ulonglong table_id)
{
return (entry *) my_hash_search(&m_table_ids,
(uchar*)&table_id,