mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixed compiler warning
This commit is contained in:
@@ -674,7 +674,7 @@ int mdl_iterate(int (*callback)(MDL_ticket *ticket, void *arg), void *arg)
|
|||||||
my_hash_value_type mdl_hash_function(CHARSET_INFO *cs,
|
my_hash_value_type mdl_hash_function(CHARSET_INFO *cs,
|
||||||
const uchar *key, size_t length)
|
const uchar *key, size_t length)
|
||||||
{
|
{
|
||||||
MDL_key *mdl_key= (MDL_key*) (key - offsetof(MDL_key, m_ptr));
|
MDL_key *mdl_key= (MDL_key*) (key - my_offsetof(MDL_key, m_ptr));
|
||||||
return mdl_key->hash_value();
|
return mdl_key->hash_value();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user