mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
log_on variable needed also in embedded library
This commit is contained in:

parent
8b39189ee4
commit
ac698d493b
@@ -362,7 +362,6 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list,
|
|||||||
List_item *values;
|
List_item *values;
|
||||||
Name_resolution_context *context;
|
Name_resolution_context *context;
|
||||||
Name_resolution_context_state ctx_state;
|
Name_resolution_context_state ctx_state;
|
||||||
#ifndef EMBEDDED_LIBRARY
|
|
||||||
char *query= thd->query;
|
char *query= thd->query;
|
||||||
/*
|
/*
|
||||||
log_on is about delayed inserts only.
|
log_on is about delayed inserts only.
|
||||||
@@ -371,7 +370,6 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list,
|
|||||||
*/
|
*/
|
||||||
bool log_on= ((thd->options & OPTION_BIN_LOG) ||
|
bool log_on= ((thd->options & OPTION_BIN_LOG) ||
|
||||||
(!(thd->security_ctx->master_access & SUPER_ACL)));
|
(!(thd->security_ctx->master_access & SUPER_ACL)));
|
||||||
#endif
|
|
||||||
thr_lock_type lock_type = table_list->lock_type;
|
thr_lock_type lock_type = table_list->lock_type;
|
||||||
Item *unused_conds= 0;
|
Item *unused_conds= 0;
|
||||||
DBUG_ENTER("mysql_insert");
|
DBUG_ENTER("mysql_insert");
|
||||||
|
Reference in New Issue
Block a user