summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2005-10-28 00:24:13 +0300
committerunknown <bell@sanja.is.com.ua>2005-10-28 00:24:13 +0300
commit4a816ce152105787ed3cd684597c421998c3dbcc (patch)
treefe93843434a12c6357de38534683f49f8f411744 /sql/sql_cache.cc
parentfd0ed478d3dd5919f3d659bb9b5b915a148941d4 (diff)
parent24ac4019c5da4dc2aec7ff441a53ca7c47419553 (diff)
downloadmariadb-git-4a816ce152105787ed3cd684597c421998c3dbcc.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-owner7-5.0 mysql-test/r/information_schema.result: Auto merged mysql-test/r/sp.result: Auto merged sql/item.cc: Auto merged sql/item.h: Auto merged sql/item_func.cc: Auto merged sql/sql_acl.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_cache.cc: Auto merged sql/sql_delete.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_prepare.cc: Auto merged sql/sql_view.cc: Auto merged
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc20
1 files changed, 4 insertions, 16 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index ed781e9bba3..3965079988b 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -2208,15 +2208,10 @@ Query_cache::register_tables_from_list(TABLE_LIST *tables_used,
tables_used->view_db.length + 1,
HA_CACHE_TBL_NONTRANSACT, 0, 0))
DBUG_RETURN(0);
- {
- TABLE_COUNTER_TYPE inc= register_tables_from_list(tables_used->ancestor,
- n + 1,
- block_table + 1);
- if (!inc)
- DBUG_RETURN(0);
- n+= inc;
- block_table+= inc;
- }
+ /*
+ We do not need to register view tables here because they are already
+ present in the global list.
+ */
}
else
{
@@ -2832,13 +2827,6 @@ static TABLE_COUNTER_TYPE process_and_count_tables(TABLE_LIST *tables_used,
tables_used->view_name.str,
tables_used->view_db.str));
*tables_type|= HA_CACHE_TBL_NONTRANSACT;
- {
- TABLE_COUNTER_TYPE subcount;
- if (!(subcount= process_and_count_tables(tables_used->ancestor,
- tables_type)))
- DBUG_RETURN(0);
- table_count+= subcount;
- }
}
else
{