Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
oceanbase
提交
a6b06ccf
O
oceanbase
项目概览
oceanbase
/
oceanbase
大约 1 年 前同步成功
通知
261
Star
6084
Fork
1301
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a6b06ccf
编写于
1月 06, 2023
作者:
W
WenJinyu
提交者:
OB-robot
1月 06, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CP] fix access_key decrypt bug
上级
474aaf01
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
1 deletion
+22
-1
deps/oblib/src/lib/utility/ob_print_utils.cpp
deps/oblib/src/lib/utility/ob_print_utils.cpp
+16
-0
deps/oblib/src/lib/utility/ob_print_utils.h
deps/oblib/src/lib/utility/ob_print_utils.h
+5
-0
src/share/backup/ob_backup_struct.cpp
src/share/backup/ob_backup_struct.cpp
+1
-1
未找到文件。
deps/oblib/src/lib/utility/ob_print_utils.cpp
浏览文件 @
a6b06ccf
...
...
@@ -52,6 +52,21 @@ int hex_to_cstr(const void *in_data,
const
int64_t
buff_size
)
{
int
ret
=
OB_SUCCESS
;
int64_t
pos
=
0
;
if
(
OB_FAIL
(
hex_to_cstr
(
in_data
,
data_length
,
buff
,
buff_size
,
pos
)))
{
LOG_WARN
(
"fail to hex to cstr"
,
K
(
ret
),
K
(
in_data
));
}
return
ret
;
}
int
hex_to_cstr
(
const
void
*
in_data
,
const
int64_t
data_length
,
char
*
buff
,
const
int64_t
buff_size
,
int64_t
&
pos
)
{
int
ret
=
OB_SUCCESS
;
pos
=
0
;
if
(
OB_ISNULL
(
in_data
)
||
0
!=
data_length
%
2
||
OB_ISNULL
(
buff
)
||
buff_size
<
data_length
/
2
+
1
)
{
ret
=
OB_INVALID_ARGUMENT
;
...
...
@@ -69,6 +84,7 @@ int hex_to_cstr(const void *in_data,
}
}
if
(
OB_SUCC
(
ret
))
{
pos
=
data_length
/
2
;
buff
[
data_length
/
2
]
=
'\0'
;
}
return
ret
;
...
...
deps/oblib/src/lib/utility/ob_print_utils.h
浏览文件 @
a6b06ccf
...
...
@@ -43,6 +43,11 @@ int hex_to_cstr(const void *in_data,
const
int64_t
data_lenth
,
char
*
buff
,
const
int64_t
buff_size
);
int
hex_to_cstr
(
const
void
*
in_data
,
const
int64_t
data_length
,
char
*
buff
,
const
int64_t
buff_size
,
int64_t
&
pos
);
/**
* convert the input buffer into hex string, not include '\0'
*
...
...
src/share/backup/ob_backup_struct.cpp
浏览文件 @
a6b06ccf
...
...
@@ -1310,7 +1310,7 @@ int ObBackupStorageInfo::parse_authorization_(const char *authorization)
}
}
else
if
(
0
==
strncmp
(
ACCESS_KEY
,
token
,
strlen
(
ACCESS_KEY
)))
{
if
(
OB_FAIL
(
set_storage_info_field_
(
token
,
access_key_
,
sizeof
(
access_key_
))))
{
LOG_WARN
(
"failed to set access
id
"
,
K
(
ret
),
K
(
token
));
LOG_WARN
(
"failed to set access
key
"
,
K
(
ret
),
K
(
token
));
}
}
else
{
ret
=
OB_INVALID_ARGUMENT
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录