Commit ee27d6a6 authored by unknown's avatar unknown

#ifdef innodb specific code, (old_innodb_table_locks)


sql/sql_parse.cc:
  #ifdef innodb specific code
parent 885e13ab
...@@ -1866,7 +1866,11 @@ bool dispatch_command(enum enum_server_command command, THD *thd, ...@@ -1866,7 +1866,11 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
mysqld_list_fields(thd,&table_list,fields); mysqld_list_fields(thd,&table_list,fields);
thd->lex->unit.cleanup(); thd->lex->unit.cleanup();
thd->cleanup_after_query(); thd->cleanup_after_query();
#ifdef HAVE_INNOBASE_DB
release_local_lock(thd, locked_tables, old_innodb_table_locks); release_local_lock(thd, locked_tables, old_innodb_table_locks);
#else
release_local_lock(thd, locked_tables, false);
#endif
break; break;
} }
#endif #endif
...@@ -4597,8 +4601,11 @@ cleanup: ...@@ -4597,8 +4601,11 @@ cleanup:
if (thd->lock == thd->locked_tables) if (thd->lock == thd->locked_tables)
thd->lock= 0; thd->lock= 0;
} }
#ifdef HAVE_INNOBASE_DB
release_local_lock(thd, locked_tables, old_innodb_table_locks); release_local_lock(thd, locked_tables, old_innodb_table_locks);
#else
release_local_lock(thd, locked_tables, false);
#endif
DBUG_RETURN(res || thd->net.report_error); DBUG_RETURN(res || thd->net.report_error);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment