diff --git a/dbcon/mysql/ha_mcs.cpp b/dbcon/mysql/ha_mcs.cpp index 82d2a9d73..0ef4430dc 100644 --- a/dbcon/mysql/ha_mcs.cpp +++ b/dbcon/mysql/ha_mcs.cpp @@ -83,9 +83,9 @@ pthread_mutex_t mcs_mutex; Function we use in the creation of our hash to get key. */ -static uchar* mcs_get_key(void* share, size_t* length, my_bool not_used __attribute__((unused))) +static const uchar* mcs_get_key(const void* share, size_t* length, my_bool not_used __attribute__((unused))) { - auto* sharePtr = reinterpret_cast(share); + auto* sharePtr = reinterpret_cast(share); *length = sharePtr->table_name_length; return (uchar*)sharePtr->table_name; }