mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Backport of:
---------------------------------------------------------- revno: 2617.22.5 committer: Konstantin Osipov <kostja@sun.com> branch nick: mysql-6.0-runtime timestamp: Tue 2009-01-27 05:08:48 +0300 message: Remove non-prefixed use of HASH. Always use my_hash_init(), my_hash_inited(), my_hash_search(), my_hash_element(), my_hash_delete(), my_hash_free() rather than non-prefixed counterparts (hash_init(), etc). Remove the backward-compatible defines.
This commit is contained in:
@ -85,7 +85,7 @@ void print_cached_tables(void)
|
||||
|
||||
for (idx=unused=0 ; idx < open_cache.records ; idx++)
|
||||
{
|
||||
TABLE *entry=(TABLE*) hash_element(&open_cache,idx);
|
||||
TABLE *entry=(TABLE*) my_hash_element(&open_cache,idx);
|
||||
printf("%-14.14s %-32s%6ld%8ld%6d %s\n",
|
||||
entry->s->db.str, entry->s->table_name.str, entry->s->version,
|
||||
entry->in_use ? entry->in_use->thread_id : 0L,
|
||||
@ -113,7 +113,7 @@ void print_cached_tables(void)
|
||||
if (count != unused)
|
||||
printf("Unused_links (%d) doesn't match open_cache: %d\n", count,unused);
|
||||
printf("\nCurrent refresh version: %ld\n",refresh_version);
|
||||
if (hash_check(&open_cache))
|
||||
if (my_hash_check(&open_cache))
|
||||
printf("Error: File hash table is corrupted\n");
|
||||
fflush(stdout);
|
||||
VOID(pthread_mutex_unlock(&LOCK_open));
|
||||
|
Reference in New Issue
Block a user