mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-27648 remove #define HASH_UPDATE_WITH_HASH_VALUE
The functions called in blocks protected by this macro remain
undefined as of 11.5 c96b23f994
This commit is contained in:
@@ -3630,12 +3630,7 @@ int spider_db_mbase::append_lock_tables(
|
||||
my_hash_reset(&lock_table_hash);
|
||||
DBUG_RETURN(error_num);
|
||||
}
|
||||
#ifdef HASH_UPDATE_WITH_HASH_VALUE
|
||||
my_hash_delete_with_hash_value(&lock_table_hash,
|
||||
tmp_link_for_hash->db_table_str_hash_value, (uchar*) tmp_link_for_hash);
|
||||
#else
|
||||
my_hash_delete(&lock_table_hash, (uchar*) tmp_link_for_hash);
|
||||
#endif
|
||||
}
|
||||
if ((error_num = spider_db_mbase_utility->append_lock_table_tail(str)))
|
||||
{
|
||||
@@ -13012,15 +13007,8 @@ int spider_mbase_handler::insert_lock_tables_list(
|
||||
DBUG_PRINT("info",("spider this=%p", this));
|
||||
uint old_elements =
|
||||
db_conn->lock_table_hash.array.max_element;
|
||||
#ifdef HASH_UPDATE_WITH_HASH_VALUE
|
||||
if (my_hash_insert_with_hash_value(
|
||||
&db_conn->lock_table_hash,
|
||||
tmp_link_for_hash2->db_table_str_hash_value,
|
||||
(uchar*) tmp_link_for_hash2))
|
||||
#else
|
||||
if (my_hash_insert(&db_conn->lock_table_hash,
|
||||
(uchar*) tmp_link_for_hash2))
|
||||
#endif
|
||||
{
|
||||
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
|
||||
}
|
||||
@@ -13067,26 +13055,12 @@ int spider_mbase_handler::append_lock_tables_list(
|
||||
if (tmp_link_for_hash->spider->wide_handler->lock_type <
|
||||
spider->wide_handler->lock_type)
|
||||
{
|
||||
#ifdef HASH_UPDATE_WITH_HASH_VALUE
|
||||
my_hash_delete_with_hash_value(
|
||||
&db_conn->lock_table_hash,
|
||||
tmp_link_for_hash->db_table_str_hash_value,
|
||||
(uchar*) tmp_link_for_hash);
|
||||
#else
|
||||
my_hash_delete(&db_conn->lock_table_hash,
|
||||
(uchar*) tmp_link_for_hash);
|
||||
#endif
|
||||
uint old_elements =
|
||||
db_conn->lock_table_hash.array.max_element;
|
||||
#ifdef HASH_UPDATE_WITH_HASH_VALUE
|
||||
if (my_hash_insert_with_hash_value(
|
||||
&db_conn->lock_table_hash,
|
||||
tmp_link_for_hash2->db_table_str_hash_value,
|
||||
(uchar*) tmp_link_for_hash2))
|
||||
#else
|
||||
if (my_hash_insert(&db_conn->lock_table_hash,
|
||||
(uchar*) tmp_link_for_hash2))
|
||||
#endif
|
||||
{
|
||||
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
|
||||
}
|
||||
|
Reference in New Issue
Block a user