代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/mysql 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
diff --git a/cmake/protobuf.cmake b/cmake/protobuf.cmake
index 93c917d..a9dfb9e 100644
--- a/cmake/protobuf.cmake
+++ b/cmake/protobuf.cmake
@@ -121,10 +121,14 @@ MACRO(MYSQL_CHECK_PROTOBUF)
IF(WITH_PROTOBUF STREQUAL "bundled")
MYSQL_USE_BUNDLED_PROTOBUF()
ELSE()
- FIND_PACKAGE(Protobuf)
+ FIND_PACKAGE(protobuf REQUIRED CONFIG)
ENDIF()
- IF(NOT PROTOBUF_FOUND)
+ SET(PROTOBUF_LIBRARY "protobuf::libprotobuf")
+ SET(PROTOBUF_PROTOC_EXECUTABLE "protobuf::protoc")
+ SET(PROTOBUF_PROTOC_LIBRARY "protobuf::libprotoc")
+
+ IF(NOT protobuf_FOUND)
MESSAGE(WARNING "Protobuf libraries/headers could not be found")
ENDIF()
@@ -136,7 +140,7 @@ MACRO(MYSQL_CHECK_PROTOBUF)
MESSAGE(WARNING "The protoc library could not be found")
ENDIF()
- IF(NOT PROTOBUF_FOUND OR
+ IF(NOT protobuf_FOUND OR
NOT PROTOBUF_PROTOC_EXECUTABLE OR
NOT PROTOBUF_PROTOC_LIBRARY)
MESSAGE(FATAL_ERROR "Use bundled protobuf, or install missing packages")
diff --git a/plugin/x/tests/driver/connector/connection_manager.cc b/plugin/x/tests/driver/connector/connection_manager.cc
index 1cdacaa..d29d338 100644
--- a/plugin/x/tests/driver/connector/connection_manager.cc
+++ b/plugin/x/tests/driver/connector/connection_manager.cc
@@ -33,8 +33,6 @@
#include "plugin/x/tests/driver/processor/variable_names.h"
-google::protobuf::LogHandler *g_lh = nullptr;
-
Connection_manager::Connection_manager(const Connection_options &co,
Variable_container *variables,
const Console &console_with_flow_history,
@@ -43,14 +41,6 @@ Connection_manager::Connection_manager(const Connection_options &co,
m_variables(variables),
m_console_with_flow_history(console_with_flow_history),
m_console(console) {
- g_lh = google::protobuf::SetLogHandler([](google::protobuf::LogLevel level,
- const char *filename, int line,
- const std::string &message) {
- if (g_lh) g_lh(level, filename, line, message);
- DBUG_LOG("debug",
- "Protobuf error (level:" << level << ", filename:" << filename
- << ":" << line << ", text:" << message);
- });
m_variables->make_special_variable(
k_variable_option_user,
new Variable_dynamic_string(m_default_connection_options.user));
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。