1
0
mirror of https://github.com/MariaDB/server.git synced 2025-06-12 01:53:02 +03:00

handlerton::discover_table_names() can not discover only

"unknown" tables. Duplicates are possible - deal with them.
This commit is contained in:
Sergei Golubchik
2013-04-09 15:49:00 +02:00
parent a489ae89b9
commit 5d364e53cb
8 changed files with 191 additions and 125 deletions

View File

@ -104,7 +104,7 @@ public:
MYF(MY_THREAD_SPECIFIC));
}
Elem& at(int idx)
Elem& at(size_t idx)
{
return *(((Elem*)array.buffer) + idx);
}
@ -129,11 +129,16 @@ public:
return (insert_dynamic(&array, (uchar*)&el));
}
int elements()
size_t elements()
{
return array.elements;
}
void set_elements(size_t n)
{
array.elements= n;
}
~Dynamic_array()
{
delete_dynamic(&array);