summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authormonty@tik.mysql.fi <>2001-07-07 23:26:06 +0300
committermonty@tik.mysql.fi <>2001-07-07 23:26:06 +0300
commit19a99dd3fd926fe7d83242bf59b58d497f55cb83 (patch)
treee0737023555d3078624f28e147e5c02b88c552ac /sql/sql_base.cc
parentc66b870cfc4b883e4a2ab808fad91b6e3a7c9bbd (diff)
downloadmariadb-git-19a99dd3fd926fe7d83242bf59b58d497f55cb83.tar.gz
dded volatile to replication variable
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 177df8f1e81..fd7945cb5bf 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -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;
}
}