1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

SQL: open TRT only after versioned write [#305][fixes #321]

This commit is contained in:
Eugene Kosov
2017-11-17 19:59:31 +03:00
committed by Aleksey Midenkov
parent 9ee3ca8d84
commit c31aa75dee
2 changed files with 3 additions and 3 deletions

View File

@ -7430,7 +7430,7 @@ static bool mysql_inplace_alter_table(THD *thd,
{
TR_table trt(thd, true);
if (table->file->native_versioned() && trt != *table_list)
if (thd->vers_update_trt && trt != *table_list)
{
if (opt_transaction_registry && trt.update())
return true;