Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
kvdb
rocksdb
提交
443e04e6
R
rocksdb
项目概览
kvdb
/
rocksdb
11 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rocksdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
443e04e6
编写于
11月 16, 2013
作者:
P
Pascal Borreli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed typos
上级
55baa3d9
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
13 addition
and
13 deletion
+13
-13
db/db_impl.cc
db/db_impl.cc
+1
-1
doc/index.html
doc/index.html
+2
-2
tools/db_crashtest2.py
tools/db_crashtest2.py
+1
-1
tools/ldb_test.py
tools/ldb_test.py
+1
-1
tools/shell/ShellState.h
tools/shell/ShellState.h
+2
-2
util/build_version.h
util/build_version.h
+1
-1
utilities/merge_operators/string_append/stringappend_test.cc
utilities/merge_operators/string_append/stringappend_test.cc
+1
-1
utilities/merge_operators/uint64add.cc
utilities/merge_operators/uint64add.cc
+1
-1
utilities/redis/redis_lists_test.cc
utilities/redis/redis_lists_test.cc
+2
-2
utilities/ttl/ttl_test.cc
utilities/ttl/ttl_test.cc
+1
-1
未找到文件。
db/db_impl.cc
浏览文件 @
443e04e6
...
...
@@ -2423,7 +2423,7 @@ Status DBImpl::DoCompactionWork(CompactionState* compact,
int
num_output_files
=
compact
->
outputs
.
size
();
if
(
compact
->
builder
!=
nullptr
)
{
// An error occured so ignore the last output.
// An error occur
r
ed so ignore the last output.
assert
(
num_output_files
>
0
);
--
num_output_files
;
}
...
...
doc/index.html
浏览文件 @
443e04e6
...
...
@@ -407,7 +407,7 @@ when 1 write buffer is being flushed to storage, new writes can continue
to the other write buffer.
<code>
Options::min_write_buffer_number_to_merge
</code>
is the minimum number
of write buffers that will be merged together before writing to storage.
If set to 1, then all write buffers are fushed to L0 as individual files and
If set to 1, then all write buffers are f
l
ushed to L0 as individual files and
this increases read amplification because a get request has to check in all
of these files. Also, an in-memory merge may result in writing lesser
data to storage if there are duplicate records in each of these
...
...
@@ -661,7 +661,7 @@ that hold all the different options for that compaction. The exact definition is
Here we give short overview of options in
<code>
CompactionOptionsUniversal
</code>
:
<ul>
<p>
<li>
<code>
CompactionOptionsUniversal::size_ratio
</code>
- Percentage flexibilty while comparing file size. If the candidate file(s)
<li>
<code>
CompactionOptionsUniversal::size_ratio
</code>
- Percentage flexibil
i
ty while comparing file size. If the candidate file(s)
size is 1% smaller than the next file's size, then include next file into
this candidate set. Default: 1
<p>
...
...
tools/db_crashtest2.py
浏览文件 @
443e04e6
...
...
@@ -146,7 +146,7 @@ def main(argv):
stdoutdata
=
stdoutdata
.
lower
()
errorcount
=
(
stdoutdata
.
count
(
'error'
)
-
stdoutdata
.
count
(
'got errors 0 times'
))
print
"#times error occured in output is "
+
str
(
errorcount
)
+
"
\n
"
print
"#times error occur
r
ed in output is "
+
str
(
errorcount
)
+
"
\n
"
if
(
errorcount
>
0
):
print
"TEST FAILED. Output has 'error'!!!
\n
"
...
...
tools/ldb_test.py
浏览文件 @
443e04e6
...
...
@@ -314,7 +314,7 @@ class LDBTestCase(unittest.TestCase):
# Dump command fails because of typo in params
dumpFilePath
=
os
.
path
.
join
(
self
.
TMP_DIR
,
"dump8"
)
self
.
assertFalse
(
self
.
dumpDb
(
"--db=%s --create_if_missin"
%
origDbPath
,
dumpFilePath
))
"--db=%s --create_if_missin
g
"
%
origDbPath
,
dumpFilePath
))
def
testMiscAdminTask
(
self
):
print
"Running testMiscAdminTask..."
...
...
tools/shell/ShellState.h
浏览文件 @
443e04e6
...
...
@@ -7,11 +7,11 @@ class ShellContext;
/*
* Currently, there are four types of state in total
* 1. start state: the first state the program enters
* 2. connecting state: the program try to conn
n
ect to a rocksdb server, whose
* 2. connecting state: the program try to connect to a rocksdb server, whose
* previous states could be "start" or "connected" states
* 3. connected states: the program has already connected to a server, and is
* processing user commands
* 4. stop state: the last state the program enters, do some clean
n
ing up things
* 4. stop state: the last state the program enters, do some cleaning up things
*/
class
ShellState
{
...
...
util/build_version.h
浏览文件 @
443e04e6
...
...
@@ -7,7 +7,7 @@
// these variables tell us about the git config and time
extern
const
char
*
rocksdb_build_git_sha
;
// these variables tell us when the compilation occured
// these variables tell us when the compilation occur
r
ed
extern
const
char
*
rocksdb_build_compile_time
;
extern
const
char
*
rocksdb_build_compile_date
;
utilities/merge_operators/string_append/stringappend_test.cc
浏览文件 @
443e04e6
...
...
@@ -83,7 +83,7 @@ class StringLists {
}
// Either key does not exist, or there is some error.
*
result
=
""
;
// Always return empty string (just for conven
v
tion)
*
result
=
""
;
// Always return empty string (just for convention)
//NotFound is okay; just return empty (similar to std::map)
//But network or db errors, etc, should fail the test (or at least yell)
...
...
utilities/merge_operators/uint64add.cc
浏览文件 @
443e04e6
...
...
@@ -10,7 +10,7 @@ using namespace rocksdb;
namespace
{
// anonymous namespace
// A 'model' merge operator with uint64 addition semantics
// Implemented as an AssociativeMergeOperator for simplicty and example.
// Implemented as an AssociativeMergeOperator for simplic
i
ty and example.
class
UInt64AddOperator
:
public
AssociativeMergeOperator
{
public:
virtual
bool
Merge
(
const
Slice
&
key
,
...
...
utilities/redis/redis_lists_test.cc
浏览文件 @
443e04e6
...
...
@@ -485,7 +485,7 @@ TEST(RedisListsTest, InsertPushSetTest) {
// redis.Print("k1"); // manually check
// Test Inserting before/after non-existent values
lengthCheck
=
redis
.
Length
(
"k1"
);
// Ensure that the length doesnt change
lengthCheck
=
redis
.
Length
(
"k1"
);
// Ensure that the length doesn
'
t change
ASSERT_EQ
(
lengthCheck
,
10
);
ASSERT_EQ
(
redis
.
InsertBefore
(
"k1"
,
"non-exist"
,
"randval"
),
lengthCheck
);
ASSERT_EQ
(
redis
.
InsertAfter
(
"k1"
,
"nothing"
,
"a"
),
lengthCheck
);
...
...
@@ -723,7 +723,7 @@ TEST(RedisListsTest, PersistenceMultiKeyTest) {
// Block three: Verify the changes from block 2
{
RedisLists
redis
(
kDefaultDbName
,
options
,
false
);
// P
re
sistent, non-destructive
RedisLists
redis
(
kDefaultDbName
,
options
,
false
);
// P
er
sistent, non-destructive
// Check
ASSERT_EQ
(
redis
.
Length
(
"k1"
),
7
);
...
...
utilities/ttl/ttl_test.cc
浏览文件 @
443e04e6
...
...
@@ -315,7 +315,7 @@ class TtlTest {
// If TTL is non positive or not provided, the behaviour is TTL = infinity
// This test opens the db 3 times with such default behavior and inserts a
// bunch of kvs each time. All kvs should accum
m
ulate in the db till the end
// bunch of kvs each time. All kvs should accumulate in the db till the end
// Partitions the sample-size provided into 3 sets over boundary1 and boundary2
TEST
(
TtlTest
,
NoEffect
)
{
MakeKVMap
(
kSampleSize_
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录