diff options
Diffstat (limited to 'storage/rocksdb/rdb_index_merge.cc')
-rw-r--r-- | storage/rocksdb/rdb_index_merge.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/rocksdb/rdb_index_merge.cc b/storage/rocksdb/rdb_index_merge.cc index 44cec7c2a9c..66c7955abf9 100644 --- a/storage/rocksdb/rdb_index_merge.cc +++ b/storage/rocksdb/rdb_index_merge.cc @@ -54,6 +54,11 @@ Rdb_index_merge::~Rdb_index_merge() { } my_sleep(m_merge_tmp_file_removal_delay * 1000); + // Not aborting on fsync error since the tmp file is not used anymore + if (mysql_file_sync(m_merge_file.m_fd, MYF(MY_WME))) { + // NO_LINT_DEBUG + sql_print_error("Error flushing truncated MyRocks merge buffer."); + } curr_size -= m_merge_buf_size; } } |