Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大炮V587
oceanbase
提交
09028517
O
oceanbase
项目概览
大炮V587
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
09028517
编写于
12月 12, 2022
作者:
O
obdev
提交者:
ob-robot
1月 12, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CP] Fix: Deserialized session lifecycle issues
上级
3f7aeb99
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
0 deletion
+23
-0
src/sql/session/ob_basic_session_info.cpp
src/sql/session/ob_basic_session_info.cpp
+23
-0
未找到文件。
src/sql/session/ob_basic_session_info.cpp
浏览文件 @
09028517
...
...
@@ -3848,6 +3848,8 @@ OB_DEF_DESERIALIZE(ObBasicSessionInfo)
user_var_val
.
reset
();
if
(
OB_FAIL
(
serialization
::
decode
(
buf
,
data_len
,
pos
,
user_var_name
)))
{
LOG_WARN
(
"fail to deserialize user var name"
,
K
(
i
),
K
(
data_len
),
K
(
pos
),
K
(
ret
));
}
else
if
(
OB_FAIL
(
name_pool_
.
write_string
(
user_var_name
,
&
user_var_name
)))
{
LOG_WARN
(
"fail to write user_var_name to string_buf_"
,
K
(
user_var_name
),
K
(
ret
));
}
else
if
(
OB_FAIL
(
serialization
::
decode
(
buf
,
data_len
,
pos
,
user_var_val
.
meta_
)))
{
LOG_WARN
(
"fail to deserialize user var val meta"
,
K
(
i
),
K
(
data_len
),
K
(
pos
),
K
(
ret
));
}
else
if
(
OB_FAIL
(
serialization
::
decode
(
buf
,
data_len
,
pos
,
user_var_val
.
value_
)))
{
...
...
@@ -3985,6 +3987,27 @@ OB_DEF_DESERIALIZE(ObBasicSessionInfo)
thread_data_
.
client_addr_
,
thread_data_
.
user_client_addr_
,
process_query_time_
);
// deep copy string.
if
(
OB_SUCC
(
ret
))
{
if
(
OB_FAIL
(
name_pool_
.
write_string
(
app_trace_id_
,
&
app_trace_id_
)))
{
LOG_WARN
(
"fail to write app_trace_id to string_buf_"
,
K
(
app_trace_id_
),
K
(
ret
));
}
else
if
(
OB_FAIL
(
name_pool_
.
write_string
(
thread_data_
.
user_name_
,
&
thread_data_
.
user_name_
)))
{
LOG_WARN
(
"fail to write username to string_buf_"
,
K
(
thread_data_
.
user_name_
),
K
(
ret
));
}
else
if
(
OB_FAIL
(
name_pool_
.
write_string
(
thread_data_
.
user_at_host_name_
,
&
thread_data_
.
user_at_host_name_
)))
{
LOG_WARN
(
"fail to write user_at_host_name to string_buf_"
,
K
(
thread_data_
.
user_at_host_name_
),
K
(
ret
));
}
else
if
(
OB_FAIL
(
name_pool_
.
write_string
(
thread_data_
.
user_at_client_ip_
,
&
thread_data_
.
user_at_client_ip_
)))
{
LOG_WARN
(
"fail to write user_at_client_ip to string_buf_"
,
K
(
thread_data_
.
user_at_client_ip_
),
K
(
ret
));
}
else
if
(
OB_FAIL
(
name_pool_
.
write_string
(
sys_var_in_pc_str_
,
&
sys_var_in_pc_str_
)))
{
LOG_WARN
(
"fail to write sys_var_in_pc_str to string_buf_"
,
K
(
sys_var_in_pc_str_
),
K
(
ret
));
}
else
if
(
OB_FAIL
(
name_pool_
.
write_string
(
config_in_pc_str_
,
&
config_in_pc_str_
)))
{
LOG_WARN
(
"fail to write config_in_pc_str_ to string_buf_"
,
K
(
config_in_pc_str_
),
K
(
ret
));
}
}
trans_flags_
.
set_need_serial_exec
(
need_serial_exec
);
sql_scope_flags_
.
set_flags
(
sql_scope_flags
);
is_deserialized_
=
true
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录