Fix build issue with MySQL 8
authorJean Baptiste Favre <debian@jbfavre.org>
Wed, 21 Jun 2023 09:16:56 +0000 (10:16 +0100)
committerJean Baptiste Favre <debian@jbfavre.org>
Wed, 21 Jun 2023 09:16:56 +0000 (10:16 +0100)
Origin: other, https://bugs.launchpad.net/ubuntu/+source/trafficserver/+bug/1795362
Forwarded: https://github.com/apache/trafficserver/pull/4360
Applied-Upstream: https://github.com/apache/trafficserver/commit/05b30527974416768515506f69da338652c23260
Reviewed-by: Jean Baptiste Favre <debian@jbfavre.org>
Last-Update: 2018-10-06

The my_bool type is no longer used in MySQL source code.
Any third-party code that used this type to represent C
boolean variables should use the bool or int C type instead.
Last-Update: 2018-10-06
Gbp-Pq: Name 0009-fix-mysql-8-build.patch

plugins/experimental/mysql_remap/mysql_remap.cc

index 5f165985f423992a64cdca90ed703039ff5d7a00..6d31ecd798dc92382cf0afd2a6130ac48f907e95 100644 (file)
@@ -187,7 +187,7 @@ TSPluginInit(int argc, const char *argv[])
   my_data *data = (my_data *)malloc(1 * sizeof(my_data));
 
   TSPluginRegistrationInfo info;
-  my_bool reconnect = 1;
+  bool reconnect = 1;
 
   info.plugin_name   = const_cast<char *>(PLUGIN_NAME);
   info.vendor_name   = const_cast<char *>("Apache Software Foundation");