mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* Copyright (c) 2000, 2016, Oracle and/or its affiliates.
|
||||
Copyright (c) 2010, 2020, MariaDB
|
||||
Copyright (c) 2010, 2021, MariaDB
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -4184,8 +4184,17 @@ bool open_tables(THD *thd, const DDL_options_st &options,
|
||||
DBUG_ENTER("open_tables");
|
||||
|
||||
/* Data access in XA transaction is only allowed when it is active. */
|
||||
if (*start && thd->transaction->xid_state.check_has_uncommitted_xa())
|
||||
DBUG_RETURN(true);
|
||||
for (TABLE_LIST *table= *start; table; table= table->next_global)
|
||||
if (!table->schema_table)
|
||||
{
|
||||
if (thd->transaction->xid_state.check_has_uncommitted_xa())
|
||||
{
|
||||
thd->transaction->xid_state.er_xaer_rmfail();
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
thd->current_tablenr= 0;
|
||||
restart:
|
||||
|
Reference in New Issue
Block a user