mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixes lp:907049 "Server started with skip-aria crashes on an attempt to connect to it"
sql/sql_parse.cc: Only call ha_maria::implicit_commit if aria is enabled
This commit is contained in:
@@ -190,6 +190,7 @@ bool end_active_trans(THD *thd)
|
|||||||
if (ha_commit(thd))
|
if (ha_commit(thd))
|
||||||
error=1;
|
error=1;
|
||||||
#ifdef WITH_MARIA_STORAGE_ENGINE
|
#ifdef WITH_MARIA_STORAGE_ENGINE
|
||||||
|
if (ha_storage_engine_is_enabled(maria_hton))
|
||||||
ha_maria::implicit_commit(thd, TRUE);
|
ha_maria::implicit_commit(thd, TRUE);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -1297,6 +1298,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
|||||||
char *beginning_of_next_stmt= (char*) end_of_stmt;
|
char *beginning_of_next_stmt= (char*) end_of_stmt;
|
||||||
|
|
||||||
#ifdef WITH_MARIA_STORAGE_ENGINE
|
#ifdef WITH_MARIA_STORAGE_ENGINE
|
||||||
|
if (ha_storage_engine_is_enabled(maria_hton))
|
||||||
ha_maria::implicit_commit(thd, FALSE);
|
ha_maria::implicit_commit(thd, FALSE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1722,6 +1724,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
|||||||
thd->transaction.stmt.reset();
|
thd->transaction.stmt.reset();
|
||||||
|
|
||||||
#ifdef WITH_MARIA_STORAGE_ENGINE
|
#ifdef WITH_MARIA_STORAGE_ENGINE
|
||||||
|
if (ha_storage_engine_is_enabled(maria_hton))
|
||||||
ha_maria::implicit_commit(thd, FALSE);
|
ha_maria::implicit_commit(thd, FALSE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user