Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Won't Fix
-
10.4(EOL)
-
None
Description
First, wsrep plugin is marked mandatory. This can be fixed with the following
--- a/sql/CMakeLists.txt
|
+++ b/sql/CMakeLists.txt
|
@@ -36,7 +36,7 @@ IF(WITH_WSREP AND NOT EMBEDDED_LIBRARY)
|
wsrep_plugin.cc
|
service_wsrep.cc
|
)
|
- MYSQL_ADD_PLUGIN(wsrep ${WSREP_SOURCES} MANDATORY NOT_EMBEDDED EXPORT_SYMBOLS LINK_LIBRARIES wsrep-lib wsrep_api_v26)
|
+ MYSQL_ADD_PLUGIN(wsrep ${WSREP_SOURCES} DEFAULT STATIC_ONLY NOT_EMBEDDED EXPORT_SYMBOLS LINK_LIBRARIES wsrep-lib wsrep_api_v26)
|
ELSE()
|
ADD_LIBRARY(wsrep STATIC wsrep_dummy.cc)
|
ADD_DEPENDENCIES(wsrep GenError) |
This patch is already in bb-10.4-serg, you can use that branch as a base.
After that change, compiling with -DPLUGIN_WSREP=NO fails with numerous errors like
/home/serg/Abk/5.5/sql/log_event.cc:13782:20: error: 'class THD' has no member named 'wsrep_info'
|
13782 | my_snprintf(thd->wsrep_info, sizeof(thd->wsrep_info) - 1,
|
| ^~~~~~~~~~
|