mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed compilation failure affects build without InnoDB
This commit is contained in:
@ -171,6 +171,12 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
|
|||||||
#define FLUSH_TIME 0 /* Don't flush tables */
|
#define FLUSH_TIME 0 /* Don't flush tables */
|
||||||
#define MAX_CONNECT_ERRORS 10 // errors before disabling host
|
#define MAX_CONNECT_ERRORS 10 // errors before disabling host
|
||||||
|
|
||||||
|
#ifdef HAVE_INNOBASE_DB
|
||||||
|
#define IF_INNOBASE_DB(A, B) (A)
|
||||||
|
#else
|
||||||
|
#define IF_INNOBASE_DB(A, B) (B)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__WIN__) || defined(OS2)
|
#if defined(__WIN__) || defined(OS2)
|
||||||
#define IF_WIN(A,B) (A)
|
#define IF_WIN(A,B) (A)
|
||||||
#undef FLUSH_TIME
|
#undef FLUSH_TIME
|
||||||
|
@ -1810,9 +1810,8 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
|||||||
TABLE_LIST table_list;
|
TABLE_LIST table_list;
|
||||||
LEX_STRING conv_name;
|
LEX_STRING conv_name;
|
||||||
/* Saved variable value */
|
/* Saved variable value */
|
||||||
#ifdef HAVE_INNOBASE_DB
|
my_bool old_innodb_table_locks=
|
||||||
my_bool old_innodb_table_locks= thd->variables.innodb_table_locks;
|
IF_INNOBASE_DB(thd->variables.innodb_table_locks, FALSE);
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
statistic_increment(thd->status_var.com_stat[SQLCOM_SHOW_FIELDS],
|
statistic_increment(thd->status_var.com_stat[SQLCOM_SHOW_FIELDS],
|
||||||
@ -2336,9 +2335,8 @@ mysql_execute_command(THD *thd)
|
|||||||
/* Locked closure of all tables */
|
/* Locked closure of all tables */
|
||||||
TABLE_LIST *locked_tables= NULL;
|
TABLE_LIST *locked_tables= NULL;
|
||||||
/* Saved variable value */
|
/* Saved variable value */
|
||||||
#ifdef HAVE_INNOBASE_DB
|
my_bool old_innodb_table_locks=
|
||||||
my_bool old_innodb_table_locks= thd->variables.innodb_table_locks;
|
IF_INNOBASE_DB(thd->variables.innodb_table_locks, FALSE);
|
||||||
#endif
|
|
||||||
DBUG_ENTER("mysql_execute_command");
|
DBUG_ENTER("mysql_execute_command");
|
||||||
thd->net.no_send_error= 0;
|
thd->net.no_send_error= 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user