summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorhongdongjian <hongdongjian@jd.com>2022-03-25 19:47:40 +0800
committerDaniel Black <daniel@mariadb.org>2022-03-28 13:42:16 +1100
commit7af133cc111c0fa8f5afa99055d2a22eaac6d94e (patch)
treebf84ea4fc05fbe8b4ead835cd93665bf0e84a38d /plugin
parent9f4ba624e2f7ad6cd35c842dbb07605f0751f4aa (diff)
downloadmariadb-git-7af133cc111c0fa8f5afa99055d2a22eaac6d94e.tar.gz
MDEV-28177: server_audit; Update the offset of dbName on the aarch64 platform.
On the aarch64 platform, MySQL 5.7.33 cannot install this version of the audit plugin, but X86_64 can run well。
Diffstat (limited to 'plugin')
-rw-r--r--plugin/server_audit/server_audit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/server_audit/server_audit.c b/plugin/server_audit/server_audit.c
index 14f5b2f98b4..81ec33973e3 100644
--- a/plugin/server_audit/server_audit.c
+++ b/plugin/server_audit/server_audit.c
@@ -2328,6 +2328,9 @@ int get_db_mysql57(MYSQL_THD thd, char **name, int *len)
#ifdef __x86_64__
db_off= 608;
db_len_off= 616;
+#elif __aarch64__
+ db_off= 632;
+ db_len_off= 640;
#else
db_off= 0;
db_len_off= 0;
@@ -2338,6 +2341,9 @@ int get_db_mysql57(MYSQL_THD thd, char **name, int *len)
#ifdef __x86_64__
db_off= 536;
db_len_off= 544;
+#elif __aarch64__
+ db_off= 552;
+ db_len_off= 560;
#else
db_off= 0;
db_len_off= 0;