MDEV-10388 MariaDB 10.1.x keeps (deleted) ML* files in tmpdir after LOAD DATA completes

truncate unused IO_CACHE backing store files in binlog_cache_data
to release the disk space they were occupying
This commit is contained in:
Sergei Golubchik 2016-12-07 13:06:14 +01:00
parent 1d702ff07c
commit f5e0522d92

View File

@ -263,6 +263,9 @@ public:
{
compute_statistics();
truncate(0);
if(cache_log.file != -1)
my_chsize(cache_log.file, 0, 0, MYF(MY_WME));
changes_to_non_trans_temp_table_flag= FALSE;
incident= FALSE;
before_stmt_pos= MY_OFF_T_UNDEF;