Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-27863

cannot compile without wsrep

    XMLWordPrintable

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

          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.