summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.fi>2001-04-02 01:45:24 +0300
committerunknown <monty@donna.mysql.fi>2001-04-02 01:45:24 +0300
commit0c5e739b345c9832eae7c74ea36f060c22a2a645 (patch)
tree90e5e8a8570e593f3241d7b766717cefc7a4130b /sql/sql_base.cc
parentc8769e806ad589e78048b879514719b29a196ec5 (diff)
downloadmariadb-git-0c5e739b345c9832eae7c74ea36f060c22a2a645.tar.gz
Added INNODB as a synonym for INNOBASE
Fixed bug where FLUSH TABLES could make indexes unavailable for the next query Added --skip-safemalloc Docs/manual.texi: Added some information about --with-debug=full sql/lex.h: Added INNODB as a synonym for INNOBASE sql/mysqld.cc: Added myisam variables. Moved shutdown message to after databases has been closed. Removed old define for MacOS X. Added --skip-safemalloc. Added missing \ to strings sql/sql_base.cc: Fixed bug where FLUSH TABLES could make indexes unavailable for the next query. support-files/my-huge.cnf.sh: Added / to end of innobase directory options support-files/my-large.cnf.sh: Added / to end of innobase directory options support-files/my-medium.cnf.sh: Added / to end of innobase directory options support-files/my-small.cnf.sh: Added / to end of innobase directory options tests/fork_big.pl: Made test harder
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc27
1 files changed, 16 insertions, 11 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 04ed72aec92..38dfcbdaa7a 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -111,7 +111,8 @@ static void check_unused(void)
#define check_unused()
#endif
-int list_open_tables(THD *thd,List<char> *tables, const char *db,const char *wild)
+int list_open_tables(THD *thd,List<char> *tables, const char *db,
+ const char *wild)
{
int result = 0;
uint col_access=thd->col_access;
@@ -940,24 +941,28 @@ bool reopen_table(TABLE *table,bool locked)
goto end;
}
- tmp.key_length=table->key_length;
- tmp.in_use=table->in_use;
- tmp.used_keys=tmp.keys_in_use;
- tmp.reginfo.lock_type=table->reginfo.lock_type;
- tmp.version=refresh_version;
- tmp.next=table->next;
- tmp.prev=table->prev;
-
- /* This list copies varibles set by open_table */
+ /* This list copies variables set by open_table */
tmp.tablenr= table->tablenr;
- tmp.tmp_table= table->tmp_table;
tmp.used_fields= table->used_fields;
tmp.const_table= table->const_table;
tmp.outer_join= table->outer_join;
tmp.null_row= table->null_row;
+ tmp.maybe_null= table->maybe_null;
tmp.status= table->status;
+ tmp.keys_in_use_for_query=tmp.used_keys=tmp.keys_in_use;
+
+ /* Get state */
+ tmp.key_length= table->key_length;
+ tmp.in_use= table->in_use;
+ tmp.reginfo.lock_type=table->reginfo.lock_type;
+ tmp.version= refresh_version;
+ tmp.tmp_table= table->tmp_table;
tmp.grant= table->grant;
+ /* Replace table in open list */
+ tmp.next=table->next;
+ tmp.prev=table->prev;
+
if (table->file)
VOID(closefrm(table)); // close file, free everything