Navigation Menu

Skip to content

Commit

Permalink
Don't use thd->lex->type, and SQLCOM_FLUSH in handler.close() means o…
Browse files Browse the repository at this point in the history
…nly "FLASH TABLE". refs #1964
  • Loading branch information
shibakentoku committed Nov 21, 2013
1 parent 425acc0 commit d06db5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ha_mroonga.cpp
Expand Up @@ -4369,9 +4369,7 @@ int ha_mroonga::close()
is_clone = false;
if (
thd &&
thd->lex &&
thd_sql_command(thd) == SQLCOM_FLUSH &&
(thd->lex->type & REFRESH_TABLES)
thd_sql_command(thd) == SQLCOM_FLUSH
) {
/* flush tables */
mrn::Lock lock(&mrn_open_tables_mutex);
Expand Down

0 comments on commit d06db5a

Please sign in to comment.