summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.local>2007-03-01 00:25:50 +0300
committerunknown <kostja@bodhi.local>2007-03-01 00:25:50 +0300
commit5c58738ad100a24266f561c9feb25ff00e1a34e0 (patch)
tree8d0d669704ff926310b4a30859fc1f3e8572fb81 /sql/sql_base.cc
parent469282461cb3ed1e0bd0b7bb9d4745eec5d6c58a (diff)
downloadmariadb-git-5c58738ad100a24266f561c9feb25ff00e1a34e0.tar.gz
Remove dead code: flush_version was never increased in the server,
therefore the logic associated with it never worked. sql/ha_partition.cc: Remove dead code. Update comments. sql/mysql_priv.h: Remove dead code (flush_version). sql/mysqld.cc: Remove dead code (flush_version). sql/sql_base.cc: Remove dead code. sql/table.cc: Remove dead code. sql/table.h: Remove dead code.
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index fd2e8445132..67e8d79b2e8 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -1142,12 +1142,7 @@ bool close_thread_table(THD *thd, TABLE **table_ptr)
}
else
{
- if (table->s->flush_version != flush_version)
- {
- table->s->flush_version= flush_version;
- table->file->extra(HA_EXTRA_FLUSH);
- }
- // Free memory and reset for next loop
+ /* Free memory and reset for next loop */
table->file->ha_reset();
table->in_use=0;
if (unused_tables)
@@ -1777,7 +1772,6 @@ bool reopen_name_locked_table(THD* thd, TABLE_LIST* table_list)
share= table->s;
share->version=0;
- share->flush_version=0;
table->in_use = thd;
check_unused();
table->next = thd->open_tables;