summaryrefslogtreecommitdiffstats
path: root/debian/patches/3039-os-data-file-no-o-direct.patch
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/patches/3039-os-data-file-no-o-direct.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/patches/3039-os-data-file-no-o-direct.patch b/debian/patches/3039-os-data-file-no-o-direct.patch
new file mode 100644
index 00000000..3a55269f
--- /dev/null
+++ b/debian/patches/3039-os-data-file-no-o-direct.patch
@@ -0,0 +1,32 @@
+Forwarded: https://github.com/MariaDB/server/pull/3039
+Origin: https://patch-diff.githubusercontent.com/raw/MariaDB/server/pull/3039.patch
+From: Daniel Black <daniel@mariadb.org>
+Date: Fri, 2 Feb 2024 11:38:00 +1100
+Subject: [PATCH] MDEV-33095 MariaDB-backup - no OS_DATA_FILE_NO_O_DIRECT on
+ some platforms
+
+Postfix for a6290a5bc5f3cba096854595c354d19d9267743d, in 10.11
+where OS_DATA_FILE_NO_O_DIRECT gets used. Same #ifdef conditions
+as other uses of OS_DATA_FILE_NO_O_DIRECT.
+
+Noticed on aarch64-macos builder.
+---
+ extra/mariabackup/xtrabackup.cc | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+--- a/extra/mariabackup/xtrabackup.cc
++++ b/extra/mariabackup/xtrabackup.cc
+@@ -2428,7 +2428,12 @@ static bool innodb_init()
+ os_file_delete_if_exists_func(ib_logfile0.c_str(), nullptr);
+ os_file_t file= os_file_create_func(ib_logfile0.c_str(),
+ OS_FILE_CREATE, OS_FILE_NORMAL,
+- OS_DATA_FILE_NO_O_DIRECT, false, &ret);
++#if defined _WIN32 || defined HAVE_FCNTL_DIRECT
++ OS_DATA_FILE_NO_O_DIRECT,
++#else
++ OS_DATA_FILE,
++#endif
++ false, &ret);
+ if (!ret)
+ {
+ invalid_log: