Commit 69874ee9 authored by Yuchen Pei's avatar Yuchen Pei

MDEV-34828 Remove some obsolete cmake code related to the removed spider handlersocket support

A fixup of MDEV-26858
parent 95d285fb
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_HANDLERSOCKET")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_HANDLERSOCKET")
IF(HAVE_WVLA)
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wno-vla")
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wno-vla")
......@@ -45,8 +42,6 @@ IF(EXISTS ${PROJECT_SOURCE_DIR}/storage/mysql_storage_engine.cmake)
ELSEIF(PLUGIN_PARTITION MATCHES "^NO$")
MESSAGE(STATUS "Spider is skipped because partitioning is disabled")
ELSE()
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/storage/spider/hs_client)
IF(DEB)
SET(extra_options COMPONENT spider-engine)
ELSE()
......
HAVE_HANDLERSOCKET = "-DHAVE_HANDLERSOCKET"
pkgplugindir = $(pkglibdir)/plugin
INCLUDES = -I$(SPD_MYSQL_INC)$(top_srcdir)/include \
-I$(SPD_MYSQL_INC)$(top_srcdir)/regex \
-I$(SPD_MYSQL_INC)$(top_srcdir)/sql \
-I$(SPD_MYSQL_INC)$(top_srcdir)/extra/yassl/include \
-I./hs_client \
$(MYSQL_INCLUDE_PATH) \
$(HANDLERSOCKET_INCLUDE_PATH)
noinst_HEADERS = ha_spider.h spd_conn.h spd_db_conn.h \
spd_db_include.h spd_err.h spd_sys_table.h \
spd_table.h spd_trx.h spd_include.h spd_param.h \
spd_direct_sql.h spd_udf.h spd_ping_table.h \
spd_copy_tables.h spd_malloc.h \
spd_db_mysql.h spd_db_handlersocket.h \
hs_client/allocator.hpp hs_client/config.hpp \
hs_client/mutex.hpp hs_client/string_util.hpp \
hs_client/auto_addrinfo.hpp hs_client/escape.hpp \
hs_client/socket.hpp hs_client/thread.hpp \
hs_client/auto_file.hpp hs_client/fatal.hpp \
hs_client/string_buffer.hpp hs_client/util.hpp \
hs_client/auto_ptrcontainer.hpp \
hs_client/hstcpcli.hpp hs_client/string_ref.hpp \
hs_client/hs_compat.h
lib_LTLIBRARIES = $(PLUGIN_SPIDER_LTLIBRARIES_TARGET)
EXTRA_LTLIBRARIES = ha_spider.la
pkgplugin_LTLIBRARIES = @plugin_spider_shared_target@
ha_spider_la_LDFLAGS = -shared -module -rpath $(pkgplugindir)
ha_spider_la_CXXFLAGS = $(AM_CXXFLAGS) -DMYSQL_DYNAMIC_PLUGIN \
$(HAVE_HANDLERSOCKET)
ha_spider_la_CFLAGS = $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN \
$(HAVE_HANDLERSOCKET)
ha_spider_la_SOURCES = \
spd_param.cc \
spd_sys_table.cc \
spd_trx.cc \
spd_db_conn.cc \
spd_conn.cc \
spd_table.cc \
spd_direct_sql.cc \
spd_udf.cc \
spd_ping_table.cc \
spd_copy_tables.cc \
spd_i_s.cc \
spd_malloc.cc \
ha_spider.cc \
spd_db_mysql.cc \
spd_db_handlersocket.cc \
hs_client/config.cpp \
hs_client/escape.cpp \
hs_client/fatal.cpp \
hs_client/hstcpcli.cpp \
hs_client/socket.cpp \
hs_client/string_util.cpp
lib_LIBRARIES = $(PLUGIN_SPIDER_LIBRARIES_TARGET)
EXTRA_LIBRARIES = libspider.a
noinst_LIBRARIES = @plugin_spider_static_target@
libspider_a_CXXFLAGS = $(AM_CXXFLAGS) $(HAVE_HANDLERSOCKET)
libspider_a_CFLAGS = $(AM_CFLAGS) $(HAVE_HANDLERSOCKET)
libspider_a_SOURCES = \
spd_param.cc \
spd_sys_table.cc \
spd_trx.cc \
spd_db_conn.cc \
spd_conn.cc \
spd_table.cc \
spd_direct_sql.cc \
spd_udf.cc \
spd_ping_table.cc \
spd_copy_tables.cc \
spd_i_s.cc \
spd_malloc.cc \
ha_spider.cc \
spd_db_mysql.cc \
spd_db_handlersocket.cc \
hs_client/config.cpp \
hs_client/escape.cpp \
hs_client/fatal.cpp \
hs_client/hstcpcli.cpp \
hs_client/socket.cpp \
hs_client/string_util.cpp
EXTRA_DIST = plug.in
# Don't update the files from bitkeeper
%::SCCS/s.%
/* Copyright (C) 2013-2018 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */
#ifndef HS_COMPAT_H
#define HS_COMPAT_H
#define SPD_INIT_DYNAMIC_ARRAY2(A, B, C, D, E, F) \
my_init_dynamic_array2(PSI_INSTRUMENT_ME, A, B, C, D, E, F)
#define SPD_INIT_ALLOC_ROOT(A, B, C, D) \
init_alloc_root(PSI_INSTRUMENT_ME, A, B, C, D)
#endif
......@@ -14,7 +14,10 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */
#include "hs_compat.h"
#define SPD_INIT_DYNAMIC_ARRAY2(A, B, C, D, E, F) \
my_init_dynamic_array2(PSI_INSTRUMENT_ME, A, B, C, D, E, F)
#define SPD_INIT_ALLOC_ROOT(A, B, C, D) \
init_alloc_root(PSI_INSTRUMENT_ME, A, B, C, D)
#define SPIDER_DBTON_SIZE 15
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment