Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
caoersss
oceanbase
提交
d6ae24e6
O
oceanbase
项目概览
caoersss
/
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,发现更多精彩内容 >>
提交
d6ae24e6
编写于
7月 08, 2021
作者:
O
obdev
提交者:
wangzelin.wzl
7月 08, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix purge reset range issue when remain row
上级
99866eb9
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
7 addition
and
6 deletion
+7
-6
src/storage/ob_multiple_scan_merge_impl.cpp
src/storage/ob_multiple_scan_merge_impl.cpp
+7
-6
未找到文件。
src/storage/ob_multiple_scan_merge_impl.cpp
浏览文件 @
d6ae24e6
...
@@ -133,7 +133,6 @@ int ObMultipleScanMergeImpl::reset_range(
...
@@ -133,7 +133,6 @@ int ObMultipleScanMergeImpl::reset_range(
gap_item
.
iter_idx_
=
idx
;
gap_item
.
iter_idx_
=
idx
;
gap_item
.
row_
=
&
row
;
gap_item
.
row_
=
&
row
;
int64_t
remain_item
=
0
;
int64_t
remain_item
=
0
;
bool
compare_result
=
false
;
const
ObIArray
<
ObITable
*>&
tables
=
tables_handle_
.
get_tables
();
const
ObIArray
<
ObITable
*>&
tables
=
tables_handle_
.
get_tables
();
const
int64_t
tables_cnt
=
tables
.
count
();
const
int64_t
tables_cnt
=
tables
.
count
();
const
ObScanMergeLoserTreeItem
*
top_item
=
nullptr
;
const
ObScanMergeLoserTreeItem
*
top_item
=
nullptr
;
...
@@ -145,10 +144,12 @@ int ObMultipleScanMergeImpl::reset_range(
...
@@ -145,10 +144,12 @@ int ObMultipleScanMergeImpl::reset_range(
STORAGE_LOG
(
WARN
,
"item or row is null"
,
K
(
ret
),
KP
(
top_item
));
STORAGE_LOG
(
WARN
,
"item or row is null"
,
K
(
ret
),
KP
(
top_item
));
}
else
{
}
else
{
const
bool
is_memtable
=
tables
.
at
(
tables_cnt
-
top_item
->
iter_idx_
-
1
)
->
is_memtable
();
const
bool
is_memtable
=
tables
.
at
(
tables_cnt
-
top_item
->
iter_idx_
-
1
)
->
is_memtable
();
if
(
top_item
->
iter_idx_
<
idx
||
const
int64_t
tree_ret
=
tree_cmp_
(
gap_item
,
*
top_item
);
(
!
is_memtable
&&
if
(
top_item
->
iter_idx_
<
idx
(
compare_result
=
(
tree_cmp_
(
gap_item
,
*
top_item
)
<
0
||
(
!
include_gap_key
&&
0
==
compare_result
)))
&&
||
(
!
is_memtable
OB_SUCCESS
==
tree_cmp_
.
get_error_code
()))
{
// row in sstable is equal to or beyond gap row should be remained
&&
(
tree_ret
<
0
||
(
include_gap_key
&&
0
==
tree_ret
))
&&
OB_SUCCESS
==
tree_cmp_
.
get_error_code
()))
{
items
[
remain_item
++
]
=
*
top_item
;
items
[
remain_item
++
]
=
*
top_item
;
}
}
if
(
OB_FAIL
(
tree_cmp_
.
get_error_code
()))
{
if
(
OB_FAIL
(
tree_cmp_
.
get_error_code
()))
{
...
@@ -167,7 +168,7 @@ int ObMultipleScanMergeImpl::reset_range(
...
@@ -167,7 +168,7 @@ int ObMultipleScanMergeImpl::reset_range(
"reset range compare"
,
"reset range compare"
,
K
(
*
gap_item
.
row_
),
K
(
*
gap_item
.
row_
),
K
(
*
top_item
->
row_
),
K
(
*
top_item
->
row_
),
K
(
compare_resul
t
),
K
(
tree_re
t
),
K
(
top_item
->
iter_idx_
),
K
(
top_item
->
iter_idx_
),
K
(
idx
),
K
(
idx
),
K
(
is_memtable
));
K
(
is_memtable
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录