summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
authorunknown <tsmith@ramayana.hindu.god>2007-08-16 12:03:49 -0600
committerunknown <tsmith@ramayana.hindu.god>2007-08-16 12:03:49 -0600
commit430df009a02a2e5daa1156b05a37db31a4f15c06 (patch)
tree54c7510ae778c33e7978f563ce90e58b60b236ad /sql/sql_handler.cc
parente0f1a29ec42b03c2ff6427f554159c323b4d625f (diff)
parent163420d2d795bc22c3939632518a18523429544e (diff)
downloadmariadb-git-430df009a02a2e5daa1156b05a37db31a4f15c06.tar.gz
Merge ramayana.hindu.god:/home/tsmith/m/bk/maint/50
into ramayana.hindu.god:/home/tsmith/m/bk/maint/51 sql/mysql_priv.h: Auto merged sql/sql_base.cc: SCCS merged sql/sql_handler.cc: SCCS merged
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r--sql/sql_handler.cc45
1 files changed, 0 insertions, 45 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc
index 300ec7f3c62..715fffe2ead 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -758,48 +758,3 @@ static int mysql_ha_flush_table(THD *thd, TABLE **table_ptr, uint mode_flags)
DBUG_RETURN(0);
}
-
-
-/*
- Mark tables for reopen.
-
- SYNOPSIS
- mysql_ha_mark_tables_for_reopen()
- thd Thread identifier.
- table Table list to mark for reopen.
-
- DESCRIPTION
- For each table found in the handler hash mark it as closed
- (ready for reopen) and end all index/table scans.
-
- NOTE
- The caller must lock LOCK_open.
-*/
-
-void mysql_ha_mark_tables_for_reopen(THD *thd, TABLE *table)
-{
- DBUG_ENTER("mysql_ha_mark_tables_for_reopen");
-
- safe_mutex_assert_owner(&LOCK_open);
- for (; table; table= table->next)
- {
- /*
- Some elements in open table list, for example placeholders used for
- name-locking, can have alias set to 0.
- */
- if (table->alias)
- {
- TABLE_LIST *hash_tables;
- if ((hash_tables= (TABLE_LIST*) hash_search(&thd->handler_tables_hash,
- (uchar*) table->alias,
- strlen(table->alias) + 1)))
- {
- /* Mark table as ready for reopen. */
- hash_tables->table= NULL;
- /* End open index/table scans. */
- table->file->ha_index_or_rnd_end();
- }
- }
- }
- DBUG_VOID_RETURN;
-}