diff options
author | unknown <monty@mysql.com> | 2004-10-27 21:56:17 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-10-27 21:56:17 +0300 |
commit | 8ace53109ecc69efc166816b01470ed7333bd862 (patch) | |
tree | 66328d72ad0e0bfc349cb02b61f845b1c7f2949a /sql/sql_insert.cc | |
parent | e646f8f2d19fbfd24c8cc4ce62322691e88d12d1 (diff) | |
download | mariadb-git-8ace53109ecc69efc166816b01470ed7333bd862.tar.gz |
Fixed access to freed memory
innobase/srv/srv0srv.c:
after merge fix
sql/set_var.cc:
after merge fix
sql/sql_cache.cc:
after merge fix
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 2c48d1dca8f..648549ca3ac 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -1681,9 +1681,10 @@ bool select_create::send_eof() */ if (!table->tmp_table) { + ulong version= table->version; hash_delete(&open_cache,(byte*) table); /* Tell threads waiting for refresh that something has happened */ - if (table->version != refresh_version) + if (version != refresh_version) VOID(pthread_cond_broadcast(&COND_refresh)); } lock=0; @@ -1707,11 +1708,12 @@ void select_create::abort() enum db_type table_type=table->db_type; if (!table->tmp_table) { + ulong version= table->version; hash_delete(&open_cache,(byte*) table); if (!create_info->table_existed) quick_rm_table(table_type, db, name); /* Tell threads waiting for refresh that something has happened */ - if (table->version != refresh_version) + if (version != refresh_version) VOID(pthread_cond_broadcast(&COND_refresh)); } else if (!create_info->table_existed) |