Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
oblogproxy
提交
709ef934
O
oblogproxy
项目概览
oceanbase
/
oblogproxy
大约 1 年 前同步成功
通知
24
Star
29
Fork
10
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oblogproxy
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
709ef934
编写于
8月 16, 2022
作者:
F
Fankux
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
support obce 314
上级
2cc93563
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
10 deletion
+11
-10
CMakeLists.txt
CMakeLists.txt
+4
-3
deps/oblogproxy.el7.x86_64.deps
deps/oblogproxy.el7.x86_64.deps
+1
-1
deps/oblogproxy.el8.x86_64.deps
deps/oblogproxy.el8.x86_64.deps
+1
-1
src/common/log.cpp
src/common/log.cpp
+2
-2
src/obaccess/ob_mysql_packet.cpp
src/obaccess/ob_mysql_packet.cpp
+3
-3
未找到文件。
CMakeLists.txt
浏览文件 @
709ef934
...
...
@@ -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/lib
64/ -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
)
...
...
deps/oblogproxy.el7.x86_64.deps
浏览文件 @
709ef934
...
...
@@ -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
deps/oblogproxy.el8.x86_64.deps
浏览文件 @
709ef934
...
...
@@ -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-1010004202205182
1.el8.x86_64.rpm
oceanbase-ce-devel-3.1.
4-1000009202207151
1.el8.x86_64.rpm
[tools]
obdevtools-gcc-5.2.0-3.el8.x86_64.rpm
src/common/log.cpp
浏览文件 @
709ef934
...
...
@@ -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();
...
...
src/obaccess/ob_mysql_packet.cpp
浏览文件 @
709ef934
...
...
@@ -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
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录