summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rw-r--r--extra/mariabackup/xtrabackup.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc
index 02432dbb5b1..c4d385fef5e 100644
--- a/extra/mariabackup/xtrabackup.cc
+++ b/extra/mariabackup/xtrabackup.cc
@@ -4966,8 +4966,6 @@ xtrabackup_apply_delta(
posix_fadvise(src_file, 0, 0, POSIX_FADV_SEQUENTIAL);
- os_file_set_nocache(src_file, src_path, "OPEN");
-
dst_file = xb_delta_open_matching_space(
dbname, space_name, info.space_id, info.zip_size,
dst_path, sizeof(dst_path), &success);
@@ -4978,8 +4976,6 @@ xtrabackup_apply_delta(
posix_fadvise(dst_file, 0, 0, POSIX_FADV_DONTNEED);
- os_file_set_nocache(dst_file, dst_path, "OPEN");
-
/* allocate buffer for incremental backup (4096 pages) */
incremental_buffer_base = static_cast<byte *>
(ut_malloc((page_size / 4 + 1) *
@@ -5079,6 +5075,13 @@ xtrabackup_apply_delta(
}
}
+ /* Free file system buffer cache after the batch was written. */
+#ifdef __linux__
+ os_file_flush_func(dst_file);
+#endif
+ posix_fadvise(dst_file, 0, 0, POSIX_FADV_DONTNEED);
+
+
incremental_buffers++;
}