aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql-shell/files/mysql-server.patch
blob: ea340e8b91689c66840d2ccae2caef9223aa4f34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
--- sql/server_component/mysql_file_imp.cc.orig	2026-02-13 13:01:31.241903000 +0100
+++ sql/server_component/mysql_file_imp.cc	2026-02-13 13:01:58.180903000 +0100
@@ -24,6 +24,7 @@
 #include "sql/server_component/mysql_file_imp.h"

 #include <fcntl.h>
+#include <sys/stat.h>
 #include <mysql/components/service_implementation.h>
 #include "my_io.h"
 #include "my_sys.h"
--- sql/server_component/mysql_json_encode_imp.cc.orig	2026-08-13 21:40:00.000000000 +0200
+++ sql/server_component/mysql_json_encode_imp.cc	2026-08-13 21:40:00.000000000 +0200
@@ -21,6 +21,8 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA */

+#include <cstdio>
+
 #include "mysql_json_encode_imp.h"
 #include "my_inttypes.h"
 #include "mysql/strings/m_ctype.h"
--- router/src/rest_host_cache/src/rest_host_cache_entries.cc.orig	2026-08-13 21:50:00.000000000 +0200
+++ router/src/rest_host_cache/src/rest_host_cache_entries.cc	2026-08-13 21:50:00.000000000 +0200
@@ -63,7 +63,8 @@
             (remaining_ttl > k_zero_seconds) ? remaining_ttl : k_zero_seconds;
         rapidjson::Value object(rapidjson::kObjectType);

-        object.AddMember("secondsRemainingTtl", remaining_ttl.count(),
+        object.AddMember<int64_t>("secondsRemainingTtl",
+                         static_cast<int64_t>(remaining_ttl.count()),
                          allocator);
         object.AddMember<uint64_t>("ttl", e.ttl_.count(), allocator);
         object.AddMember<uint64_t>("cacheHits", e.cache_hits_.load(),
--- components/group_replication_resource_manager/resource_manager_memory_stats.h.orig	2026-08-13 21:30:00.000000000 +0200
+++ components/group_replication_resource_manager/resource_manager_memory_stats.h	2026-08-13 21:30:00.000000000 +0200
@@ -8,6 +8,7 @@
 #include <cerrno>
 #include <cstdint>
 #include <cstring>
+#include <ctime>
 #include <string>
 #include "resource_manager_procfs.h"

--- libs/mysql/gtid/tag_plain.h.orig	2026-09-02 10:00:00.000000000 +0200
+++ libs/mysql/gtid/tag_plain.h	2026-09-02 10:00:00.000000000 +0200
@@ -27,6 +27,7 @@
 #include <array>
 #include <cstring>
 #include <memory>
 #include <string>
+#include <type_traits>
 
 #include "mysql/gtid/gtid_constants.h"  // tag_max_length
--- router/src/harness/src/stdx/filesystem.cc.orig	2026-06-03 12:21:17 UTC
+++ router/src/harness/src/stdx/filesystem.cc
@@ -35,6 +35,7 @@
 
 #include <array>
 #include <climits>
+#include <cstdlib>
 #include <system_error>
 
 #include "mysql/harness/stdx/expected.h"