diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-12-07 13:06:14 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-12-07 13:32:11 +0100 |
commit | f5e0522d9261408aab8f7736ff9ab116b1e4358f (patch) | |
tree | 492512a86129473082ac047fa2e0935dfb84e82a | |
parent | 1d702ff07c53770f45086c514f34bf6ec4e8b299 (diff) | |
download | mariadb-git-f5e0522d9261408aab8f7736ff9ab116b1e4358f.tar.gz |
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
-rw-r--r-- | sql/log.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc index 077bbf5e711..dc87c39730c 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -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; |