1
0
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:
monty@mysql.com
2004-03-12 01:10:22 +02:00
parent 1c0d5ad25c
commit e27960a44e
8 changed files with 38 additions and 26 deletions

View File

@@ -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;
}