Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Won't Fix
    • 10.4(EOL)
    • N/A
    • Compiling, wsrep
    • 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,
            |                    ^~~~~~~~~~
      

      Attachments

        Activity

          jplindst Jan Lindström (Inactive) added a comment - - edited

          I do not think -DPLUGIN_WSREP=NO have ever worked. Windows uses -DWITH_WSREP=0 and that works. After few tries, I have no idea what to change on those cmake files to get it work. In my opinion code changes would be quite big so I'm redundant to do those.

          jplindst Jan Lindström (Inactive) added a comment - - edited I do not think -DPLUGIN_WSREP=NO have ever worked. Windows uses -DWITH_WSREP=0 and that works. After few tries, I have no idea what to change on those cmake files to get it work. In my opinion code changes would be quite big so I'm redundant to do those.

          People

            serg Sergei Golubchik
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.