Skip to content

Commit

Permalink
MDEV-10388 MariaDB 10.1.x keeps (deleted) ML* files in tmpdir after L…
Browse files Browse the repository at this point in the history
…OAD DATA completes

truncate unused IO_CACHE backing store files in binlog_cache_data
to release the disk space they were occupying
  • Loading branch information
vuvova committed Dec 7, 2016
1 parent 1d702ff commit f5e0522
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sql/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ class binlog_cache_data
{
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;
Expand Down

0 comments on commit f5e0522

Please sign in to comment.