Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
kvdb
rocksdb
提交
f7f973d3
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,发现更多精彩内容 >>
提交
f7f973d3
编写于
9月 04, 2014
作者:
I
Igor Canadi
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #269 from huahang/patch-2
fix a few compile warnings
上级
2fd3806c
ef5b3847
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
13 addition
and
8 deletion
+13
-8
db/dbformat.h
db/dbformat.h
+1
-1
db/snapshot.h
db/snapshot.h
+1
-1
table/block_prefix_index.cc
table/block_prefix_index.cc
+2
-2
table/block_prefix_index.h
table/block_prefix_index.h
+1
-1
util/histogram.cc
util/histogram.cc
+1
-1
util/histogram.h
util/histogram.h
+4
-2
utilities/spatialdb/spatial_db.cc
utilities/spatialdb/spatial_db.cc
+3
-0
未找到文件。
db/dbformat.h
浏览文件 @
f7f973d3
...
...
@@ -244,7 +244,7 @@ class IterKey {
Slice
GetKey
()
const
{
return
Slice
(
key_
,
key_size_
);
}
const
size_t
Size
()
{
return
key_size_
;
}
size_t
Size
()
{
return
key_size_
;
}
void
Clear
()
{
key_size_
=
0
;
}
...
...
db/snapshot.h
浏览文件 @
f7f973d3
...
...
@@ -71,7 +71,7 @@ class SnapshotList {
}
// get the sequence number of the most recent snapshot
const
SequenceNumber
GetNewest
()
{
SequenceNumber
GetNewest
()
{
if
(
empty
())
{
return
0
;
}
...
...
table/block_prefix_index.cc
浏览文件 @
f7f973d3
...
...
@@ -210,8 +210,8 @@ Status BlockPrefixIndex::Create(const SliceTransform* internal_prefix_extractor,
return
s
;
}
const
uint32_t
BlockPrefixIndex
::
GetBlocks
(
const
Slice
&
key
,
uint32_t
**
blocks
)
{
uint32_t
BlockPrefixIndex
::
GetBlocks
(
const
Slice
&
key
,
uint32_t
**
blocks
)
{
Slice
prefix
=
internal_prefix_extractor_
->
Transform
(
key
);
uint32_t
bucket
=
PrefixToBucket
(
prefix
,
num_buckets_
);
...
...
table/block_prefix_index.h
浏览文件 @
f7f973d3
...
...
@@ -23,7 +23,7 @@ class BlockPrefixIndex {
// the key, based on the prefix.
// Returns the total number of relevant blocks, 0 means the key does
// not exist.
const
uint32_t
GetBlocks
(
const
Slice
&
key
,
uint32_t
**
blocks
);
uint32_t
GetBlocks
(
const
Slice
&
key
,
uint32_t
**
blocks
);
size_t
ApproximateMemoryUsage
()
const
{
return
sizeof
(
BlockPrefixIndex
)
+
...
...
util/histogram.cc
浏览文件 @
f7f973d3
...
...
@@ -53,7 +53,7 @@ HistogramBucketMapper::HistogramBucketMapper()
}
}
const
size_t
HistogramBucketMapper
::
IndexForValue
(
const
uint64_t
value
)
const
{
size_t
HistogramBucketMapper
::
IndexForValue
(
const
uint64_t
value
)
const
{
if
(
value
>=
maxBucketValue_
)
{
return
bucketValues_
.
size
()
-
1
;
}
else
if
(
value
>=
minBucketValue_
)
{
...
...
util/histogram.h
浏览文件 @
f7f973d3
...
...
@@ -23,10 +23,10 @@ class HistogramBucketMapper {
HistogramBucketMapper
();
// converts a value to the bucket index.
const
size_t
IndexForValue
(
const
uint64_t
value
)
const
;
size_t
IndexForValue
(
const
uint64_t
value
)
const
;
// number of buckets required.
const
size_t
BucketCount
()
const
{
size_t
BucketCount
()
const
{
return
bucketValues_
.
size
();
}
...
...
@@ -65,6 +65,8 @@ class HistogramImpl {
virtual
double
StandardDeviation
()
const
;
virtual
void
Data
(
HistogramData
*
const
data
)
const
;
virtual
~
HistogramImpl
()
{}
private:
// To be able to use HistogramImpl as thread local variable, its constructor
// has to be static. That's why we're using manually values from BucketMapper
...
...
utilities/spatialdb/spatial_db.cc
浏览文件 @
f7f973d3
...
...
@@ -7,7 +7,10 @@
#include "rocksdb/utilities/spatial_db.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <string>
#include <vector>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录