diff options
author | Oystein Grovlen <oystein.grovlen@oracle.com> | 2010-11-10 15:48:29 +0100 |
---|---|---|
committer | Oystein Grovlen <oystein.grovlen@oracle.com> | 2010-11-10 15:48:29 +0100 |
commit | 117c19c262d9d30cca919b9cadaf59459b049b97 (patch) | |
tree | 509d217aa4ebb8bc1464a8352f50ae30468e4e12 /sql-common | |
parent | 05e307ae00aa48c83e99b93cd3b4688ebda04c5d (diff) | |
download | mariadb-git-117c19c262d9d30cca919b9cadaf59459b049b97.tar.gz |
Bug#57704 Cleanup code dies with void TABLE::set_keyread(bool): Assertion `file' failed.
This bug was introduced in this revision:
kostja@sun.com-20100727102553-b4n2ojcyfj79l2x7
("A pre-requisite patch for the fix for Bug#52044.")
It happens because close_thread_tables() is now called in
open_and_lock_tables upon failure. Hence, table is no longer
open when optimizer tries to do cleanup.
Fix: Make sure to do cleanup in st_select_lex_unit::prepare()
upon failure. This way, cleanup() is called before tables are
released.
Diffstat (limited to 'sql-common')
0 files changed, 0 insertions, 0 deletions