mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Ensure that install_test_db.sh script works with both 'make install' and 'make_binary_distribution' layouts
Abort if we can't allocate memory for table cache Fix bug with multi-update-tables and BDB tables.
This commit is contained in:
@@ -47,11 +47,11 @@ extern "C" byte *table_cache_key(const byte *record,uint *length,
|
||||
return (byte*) entry->table_cache_key;
|
||||
}
|
||||
|
||||
void table_cache_init(void)
|
||||
bool table_cache_init(void)
|
||||
{
|
||||
VOID(hash_init(&open_cache,table_cache_size+16,0,0,table_cache_key,
|
||||
(hash_free_key) free_cache_entry,0));
|
||||
mysql_rm_tmp_tables();
|
||||
return hash_init(&open_cache,table_cache_size+16,0,0,table_cache_key,
|
||||
(hash_free_key) free_cache_entry,0) != 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user