Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
indiff7643
Terarkdb
提交
fa23d1e4
T
Terarkdb
项目概览
indiff7643
/
Terarkdb
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Terarkdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fa23d1e4
编写于
7月 31, 2018
作者:
奏
奏之章
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix for db_compaction_test
上级
1a50fd97
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
4 deletion
+8
-4
db/version_set.cc
db/version_set.cc
+3
-3
options/cf_options.h
options/cf_options.h
+2
-0
options/options_helper.cc
options/options_helper.cc
+1
-1
table/iterator_wrapper.h
table/iterator_wrapper.h
+2
-0
未找到文件。
db/version_set.cc
浏览文件 @
fa23d1e4
...
@@ -632,11 +632,11 @@ void LevelIterator::SkipEmptyFileForward() {
...
@@ -632,11 +632,11 @@ void LevelIterator::SkipEmptyFileForward() {
// Move to next file
// Move to next file
if
(
file_index_
>=
flevel_
->
num_files
-
1
)
{
if
(
file_index_
>=
flevel_
->
num_files
-
1
)
{
// Already at the last file
// Already at the last file
SetFileIterator
(
nullptr
);
file_iter_
.
SetValid
(
false
);
return
;
return
;
}
}
if
(
KeyReachedUpperBound
(
file_smallest_key
(
file_index_
+
1
)))
{
if
(
KeyReachedUpperBound
(
file_smallest_key
(
file_index_
+
1
)))
{
SetFileIterator
(
nullptr
);
file_iter_
.
SetValid
(
false
);
return
;
return
;
}
}
InitFileIterator
(
file_index_
+
1
);
InitFileIterator
(
file_index_
+
1
);
...
@@ -652,7 +652,7 @@ void LevelIterator::SkipEmptyFileBackward() {
...
@@ -652,7 +652,7 @@ void LevelIterator::SkipEmptyFileBackward() {
// Move to previous file
// Move to previous file
if
(
file_index_
==
0
)
{
if
(
file_index_
==
0
)
{
// Already the first file
// Already the first file
SetFileIterator
(
nullptr
);
file_iter_
.
SetValid
(
false
);
return
;
return
;
}
}
InitFileIterator
(
file_index_
-
1
);
InitFileIterator
(
file_index_
-
1
);
...
...
options/cf_options.h
浏览文件 @
fa23d1e4
...
@@ -134,6 +134,7 @@ struct MutableCFOptions {
...
@@ -134,6 +134,7 @@ struct MutableCFOptions {
inplace_update_num_locks
(
options
.
inplace_update_num_locks
),
inplace_update_num_locks
(
options
.
inplace_update_num_locks
),
prefix_extractor
(
options
.
prefix_extractor
),
prefix_extractor
(
options
.
prefix_extractor
),
disable_auto_compactions
(
options
.
disable_auto_compactions
),
disable_auto_compactions
(
options
.
disable_auto_compactions
),
enable_lazy_compaction
(
options
.
enable_lazy_compaction
),
soft_pending_compaction_bytes_limit
(
soft_pending_compaction_bytes_limit
(
options
.
soft_pending_compaction_bytes_limit
),
options
.
soft_pending_compaction_bytes_limit
),
hard_pending_compaction_bytes_limit
(
hard_pending_compaction_bytes_limit
(
...
@@ -170,6 +171,7 @@ struct MutableCFOptions {
...
@@ -170,6 +171,7 @@ struct MutableCFOptions {
inplace_update_num_locks
(
0
),
inplace_update_num_locks
(
0
),
prefix_extractor
(
nullptr
),
prefix_extractor
(
nullptr
),
disable_auto_compactions
(
false
),
disable_auto_compactions
(
false
),
enable_lazy_compaction
(
false
),
soft_pending_compaction_bytes_limit
(
0
),
soft_pending_compaction_bytes_limit
(
0
),
hard_pending_compaction_bytes_limit
(
0
),
hard_pending_compaction_bytes_limit
(
0
),
level0_file_num_compaction_trigger
(
0
),
level0_file_num_compaction_trigger
(
0
),
...
...
options/options_helper.cc
浏览文件 @
fa23d1e4
...
@@ -1661,7 +1661,7 @@ std::unordered_map<std::string, OptionTypeInfo>
...
@@ -1661,7 +1661,7 @@ std::unordered_map<std::string, OptionTypeInfo>
{
offset_of
(
&
ColumnFamilyOptions
::
disable_auto_compactions
),
{
offset_of
(
&
ColumnFamilyOptions
::
disable_auto_compactions
),
OptionType
::
kBoolean
,
OptionVerificationType
::
kNormal
,
true
,
OptionType
::
kBoolean
,
OptionVerificationType
::
kNormal
,
true
,
offsetof
(
struct
MutableCFOptions
,
disable_auto_compactions
)}},
offsetof
(
struct
MutableCFOptions
,
disable_auto_compactions
)}},
{
"enable_lazy_compaction
s
"
,
{
"enable_lazy_compaction"
,
{
offset_of
(
&
ColumnFamilyOptions
::
enable_lazy_compaction
),
{
offset_of
(
&
ColumnFamilyOptions
::
enable_lazy_compaction
),
OptionType
::
kBoolean
,
OptionVerificationType
::
kNormal
,
true
,
OptionType
::
kBoolean
,
OptionVerificationType
::
kNormal
,
true
,
offsetof
(
struct
MutableCFOptions
,
enable_lazy_compaction
)}},
offsetof
(
struct
MutableCFOptions
,
enable_lazy_compaction
)}},
...
...
table/iterator_wrapper.h
浏览文件 @
fa23d1e4
...
@@ -42,6 +42,8 @@ class IteratorWrapper {
...
@@ -42,6 +42,8 @@ class IteratorWrapper {
return
old_iter
;
return
old_iter
;
}
}
void
SetValid
(
bool
valid
)
{
valid_
=
valid
;
}
void
DeleteIter
(
bool
is_arena_mode
)
{
void
DeleteIter
(
bool
is_arena_mode
)
{
if
(
iter_
)
{
if
(
iter_
)
{
if
(
!
is_arena_mode
)
{
if
(
!
is_arena_mode
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录