summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2017-12-22 14:50:07 +0300
committerAleksey Midenkov <midenok@gmail.com>2017-12-22 14:52:17 +0300
commit57f827cdd6e542d717a4853a3115b8254b46d740 (patch)
tree13715aabd389fa3864c597b68c09f21366e5fb02 /sql/partition_info.cc
parent7f1777af8802178d68d0e0193e859f80449bb98c (diff)
downloadmariadb-git-57f827cdd6e542d717a4853a3115b8254b46d740.tar.gz
MDEV-14741 Assertion '(trx)->start_file == 0' failed
in row_truncate_table_for_mysql()
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index 98f83209874..82ac06ad604 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -1072,7 +1072,10 @@ public:
thd->lock= saved_lock;
thd->locked_tables_mode= saved_mode;
if (locked && !thd->in_sub_stmt)
+ {
ha_commit_trans(thd, false);
+ ha_commit_trans(thd, true);
+ }
}
};