mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
moved ha_maria::implicit_commit() calls around
This commit is contained in:
@@ -281,7 +281,7 @@ static int bad_ptr(const char *where, void *ptr)
|
|||||||
magicend[3] != MAGICEND3)
|
magicend[3] != MAGICEND3)
|
||||||
{
|
{
|
||||||
warn("Error: %s overrun buffer ", where);
|
warn("Error: %s overrun buffer ", where);
|
||||||
fprintf(stderr, ", allocated at ");
|
fprintf(stderr, "Allocated at ");
|
||||||
print_stack(irem->frame);
|
print_stack(irem->frame);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@@ -1454,11 +1454,6 @@ void close_thread_tables(THD *thd)
|
|||||||
TABLE *table;
|
TABLE *table;
|
||||||
DBUG_ENTER("close_thread_tables");
|
DBUG_ENTER("close_thread_tables");
|
||||||
|
|
||||||
#ifdef WITH_ARIA_STORAGE_ENGINE
|
|
||||||
if (!thd->in_sub_stmt)
|
|
||||||
ha_maria::implicit_commit(thd, FALSE);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef EXTRA_DEBUG
|
#ifdef EXTRA_DEBUG
|
||||||
DBUG_PRINT("tcache", ("open tables:"));
|
DBUG_PRINT("tcache", ("open tables:"));
|
||||||
for (table= thd->open_tables; table; table= table->next)
|
for (table= thd->open_tables; table; table= table->next)
|
||||||
|
@@ -1052,10 +1052,14 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
|||||||
! thd->is_error())
|
! thd->is_error())
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
Multiple queries exits, execute them individually
|
Multiple queries exist, execute them individually
|
||||||
*/
|
*/
|
||||||
char *beginning_of_next_stmt= (char*) parser_state.m_lip.found_semicolon;
|
char *beginning_of_next_stmt= (char*) parser_state.m_lip.found_semicolon;
|
||||||
|
|
||||||
|
#ifdef WITH_ARIA_STORAGE_ENGINE
|
||||||
|
ha_maria::implicit_commit(thd, FALSE);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Finalize server status flags after executing a statement. */
|
/* Finalize server status flags after executing a statement. */
|
||||||
thd->update_server_status();
|
thd->update_server_status();
|
||||||
thd->protocol->end_statement();
|
thd->protocol->end_statement();
|
||||||
@@ -4473,6 +4477,9 @@ finish:
|
|||||||
trans_commit_stmt(thd);
|
trans_commit_stmt(thd);
|
||||||
thd->stmt_da->can_overwrite_status= FALSE;
|
thd->stmt_da->can_overwrite_status= FALSE;
|
||||||
}
|
}
|
||||||
|
#ifdef WITH_ARIA_STORAGE_ENGINE
|
||||||
|
ha_maria::implicit_commit(thd, FALSE);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
lex->unit.cleanup();
|
lex->unit.cleanup();
|
||||||
|
Reference in New Issue
Block a user