...
 
Commits (4)
    https://gitcode.net/oceanbase/oblogproxy/-/commit/709ef9349767c6e98b2f9cba97b885a7c83bc453 support obce 314 2022-08-16T16:58:45+08:00 Fankux fankux@gmail.com https://gitcode.net/oceanbase/oblogproxy/-/commit/4098a9eb17612939da1cb7b5cf51df5df484db27 Merge pull request #35 from fankux/obce314 2022-08-16T17:34:05+08:00 LIN wangzelin19961202@gmail.com support obce 314 https://gitcode.net/oceanbase/oblogproxy/-/commit/6532a1c861001acbee15057e12675400f8a60c9c upgrade obcdc rpm deps 2022-08-16T17:48:04+08:00 Fankux fankux@gmail.com https://gitcode.net/oceanbase/oblogproxy/-/commit/0642350eb29b64cdc9a2243f25bdde8dd0794343 Merge pull request #36 from fankux/obce314 2022-08-16T19:02:49+08:00 LIN wangzelin19961202@gmail.com upgrade obcdc rpm deps
......@@ -57,9 +57,9 @@ if (WITH_DEPS)
SET(OpenSSL_ROOT ${DEP_VAR}/usr/local/oceanbase/deps/devel/)
# make protoc found libstdc++
SET(PROTOC_LINK_FLAGS "-L${DEP_VAR}/usr/local/oceanbase/deps/devel/lib/ -static-libstdc++")
SET(PROTOC_LINK_FLAGS "-L${DEP_VAR}/usr/local/oceanbase/deps/devel/lib64/ -L${DEP_VAR}/usr/local/oceanbase/devtools/lib/gcc/x86_64-redhat-linux/5.2.0/ -static-libstdc++")
SET(DEP_LIB_PATH ${DEP_VAR}/usr/local/oceanbase/deps/devel/lib/ ${DEP_VAR}/usr/local/oceanbase/devtools/lib64/)
SET(DEP_LIB_PATH ${DEP_VAR}/usr/local/oceanbase/deps/devel/lib/ ${DEP_VAR}/usr/local/oceanbase/devtools/lib64/ ${DEP_VAR}/usr/local/oceanbase/devtools/lib/gcc/x86_64-redhat-linux/5.2.0/)
endif ()
message(STATUS "DEP_VAR: ${DEP_VAR}")
......@@ -175,6 +175,7 @@ add_library(PROTO_OBJS OBJECT ${PROTO_SRCS} ${PROTO_HDRS})
message("protoc: ${PROTOBUF_PROTOC_EXECUTABLE}, proto srcs : ${PROTO_SRCS}")
# oblogmsg
option(LOGMSG_BY_LIBOBLOG "use logmsg provide by liboblog" ON)
set(LOGMSG_BY_LIBOBLOG_DEFINE "")
if (LOGMSG_BY_LIBOBLOG)
set(LOGMSG_BY_LIBOBLOG_DEFINE "-DLOGMSG_BY_LIBOBLOG=1")
......@@ -213,7 +214,7 @@ execute_process(
if (NOT GIT_VERSION)
message(WARNING "oblogproxy fetch git version empty, use current time as program version")
STRING(TIMESTAMP GIT_VERSION "%Y-%m-%d %H:%M:%S")
STRING(TIMESTAMP GIT_VERSION "%Y-%m-%d_%H:%M:%S")
endif ()
if (NOT GIT_VERSION)
......
......@@ -61,7 +61,7 @@ set(CPACK_RPM_UTILS_POST_INSTALL_SCRIPT_FILE ${CMAKE_CURRENT_BINARY_DIR}/utils_
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/utils_postun.script "/sbin/ldconfig")
set(CPACK_RPM_UTILS_POST_UNINSTALL_SCRIPT_FILE ${CMAKE_CURRENT_BINARY_DIR}/utils_postun.script)
if(USE_OBCDC_NS)
set(CPACK_RPM_PACKAGE_REQUIRES "devdeps-libaio >= 0.3.112, devdeps-openssl-static >= 1.0.1e, oceanbase-ce-devel = 3.1.3")
set(CPACK_RPM_PACKAGE_REQUIRES "devdeps-libaio >= 0.3.112, devdeps-openssl-static >= 1.0.1e, oceanbase-ce-devel >= 3.1.3")
else()
set(CPACK_RPM_PACKAGE_REQUIRES "devdeps-libaio >= 0.3.112, devdeps-openssl-static >= 1.0.1e, oceanbase-ce-devel = 3.1.2")
endif()
......
......@@ -7,7 +7,7 @@ stable_repo=https://mirrors.aliyun.com/oceanbase/community/stable/el/7/x86_64/
[deps]
devdeps-openssl-static-1.0.1e-3.el7.x86_64.rpm
devdeps-libaio-0.3.112-3.el7.x86_64.rpm
oceanbase-ce-devel-3.1.3-10100032022041510.el7.x86_64.rpm
oceanbase-ce-devel-3.1.4-10000092022071511.el7.x86_64.rpm
[tools]
obdevtools-gcc-5.2.0-3.el7.x86_64.rpm
\ No newline at end of file
......@@ -7,7 +7,7 @@ stable_repo=https://mirrors.aliyun.com/oceanbase/community/stable/el/8/x86_64/
[deps]
devdeps-openssl-static-1.0.1e-3.el8.x86_64.rpm
devdeps-libaio-0.3.112-3.el8.x86_64.rpm
oceanbase-ce-devel-3.1.3-10100042022051821.el8.x86_64.rpm
oceanbase-ce-devel-3.1.4-10000092022071511.el8.x86_64.rpm
[tools]
obdevtools-gcc-5.2.0-3.el8.x86_64.rpm
......@@ -61,8 +61,8 @@ void init_log(const char* argv0, bool restart)
google::SetLogDestination(google::GLOG_ERROR, "log/logproxy_error.");
google::SetLogDestination(google::GLOG_FATAL, "log/logproxy_error.");
google::InstallFailureSignalHandler();
google::InstallFailureWriter(dump_writer);
// google::InstallFailureSignalHandler();
// google::InstallFailureWriter(dump_writer);
FileGcRoutine log_gc("./log", {"logproxy_", bin_name + ".log"});
// log_gc.start();
......
......@@ -129,9 +129,9 @@ int send_mysql_packet(int fd, MsgBuf& msgbuf, uint8_t sequence)
packet_length = packet_length | (sequence << 3);
////// DEBUG ONLY ///////
std::string hexstr;
dumphex((char*)&packet_length, 4, hexstr);
OMS_DEBUG << "MySQL packet header: " << hexstr << ", value: " << packet_length;
// std::string hexstr;
// dumphex((char*)&packet_length, 4, hexstr);
// OMS_DEBUG << "MySQL packet header: " << hexstr << ", value: " << packet_length;
////// DEBUG ONLY ///////
int ret = writen(fd, &packet_length, 4);
......