1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

dded volatile to replication variable

This commit is contained in:
monty@tik.mysql.fi
2001-07-07 23:26:06 +03:00
parent c66b870cfc
commit 19a99dd3fd
5 changed files with 32 additions and 14 deletions

View File

@ -121,7 +121,7 @@ int list_open_tables(THD *thd,List<char> *tables, const char *db,
VOID(pthread_mutex_lock(&LOCK_open));
bzero((char*) &table_list,sizeof(table_list));
for (uint idx=0 ; result == 0 && idx < open_cache.records; idx++)
for (uint idx=0 ; idx < open_cache.records; idx++)
{
TABLE *entry=(TABLE*) hash_element(&open_cache,idx);
if ((!entry->real_name) || strcmp(entry->table_cache_key,db))
@ -152,6 +152,7 @@ int list_open_tables(THD *thd,List<char> *tables, const char *db,
if (tables->push_back(thd->strdup(entry->real_name)))
{
result = -1;
break;
}
}