mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
More merge fixes:
- mdl.cc and mdl.h merged completely - mysql_system_tables*.sql merged completely - Fixed wrong merge of lock_tables - Added some missing functions: - bool THD::notify_shared_lock() - Dynamic_array::pop, Dynamic_array::del - Added MDL_context_owner to THD - Added metadata_locks_hash_instances
This commit is contained in:
@ -124,6 +124,17 @@ public:
|
||||
return (insert_dynamic(&array, (uchar*)&el));
|
||||
}
|
||||
|
||||
/// Pops the last element. Does nothing if array is empty.
|
||||
Elem& pop()
|
||||
{
|
||||
return *((Elem*)pop_dynamic(&array));
|
||||
}
|
||||
|
||||
void del(uint idx)
|
||||
{
|
||||
delete_dynamic_element(&array, idx);
|
||||
}
|
||||
|
||||
int elements()
|
||||
{
|
||||
return array.elements;
|
||||
|
Reference in New Issue
Block a user