Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Incubator Pegasus
提交
b228652b
Incubator Pegasus
项目概览
apache
/
Incubator Pegasus
通知
9
Star
5
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Incubator Pegasus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b228652b
编写于
11月 30, 2018
作者:
L
Lai Yingchun
提交者:
QinZuoyan
11月 30, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
shell: fix a command bug (#222)
上级
cae9b4bd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
13 deletion
+15
-13
src/shell/commands.h
src/shell/commands.h
+15
-13
未找到文件。
src/shell/commands.h
浏览文件 @
b228652b
...
...
@@ -2546,23 +2546,25 @@ static void print_current_scan_state(const std::vector<scan_data_context *> &con
const
std
::
string
&
stop_desc
,
bool
stat_size
)
{
rocksdb
::
HistogramImpl
hash_key_size_histogram
;
rocksdb
::
HistogramImpl
sort_key_size_histogram
;
rocksdb
::
HistogramImpl
value_size_histogram
;
rocksdb
::
HistogramImpl
row_size_histogram
;
long
total_rows
=
0
;
for
(
const
auto
&
context
:
contexts
)
{
hash_key_size_histogram
.
Merge
(
context
->
hash_key_size_histogram
);
sort_key_size_histogram
.
Merge
(
context
->
sort_key_size_histogram
);
value_size_histogram
.
Merge
(
context
->
value_size_histogram
);
row_size_histogram
.
Merge
(
context
->
row_size_histogram
);
fprintf
(
stderr
,
"INFO: split[%d]: %ld rows
\n
"
,
context
->
split_id
,
context
->
row_size_histogram
.
num
());
total_rows
+=
context
->
split_rows
.
load
();
fprintf
(
stderr
,
"INFO: split[%d]: %ld rows
\n
"
,
context
->
split_id
,
context
->
split_rows
.
load
());
}
fprintf
(
stderr
,
"Count %s, total %ld rows.
\n
\n
"
,
stop_desc
.
c_str
(),
row_size_histogram
.
num
()
);
fprintf
(
stderr
,
"Count %s, total %ld rows.
\n
"
,
stop_desc
.
c_str
(),
total_rows
);
if
(
stat_size
)
{
rocksdb
::
HistogramImpl
hash_key_size_histogram
;
rocksdb
::
HistogramImpl
sort_key_size_histogram
;
rocksdb
::
HistogramImpl
value_size_histogram
;
rocksdb
::
HistogramImpl
row_size_histogram
;
for
(
const
auto
&
context
:
contexts
)
{
hash_key_size_histogram
.
Merge
(
context
->
hash_key_size_histogram
);
sort_key_size_histogram
.
Merge
(
context
->
sort_key_size_histogram
);
value_size_histogram
.
Merge
(
context
->
value_size_histogram
);
row_size_histogram
.
Merge
(
context
->
row_size_histogram
);
}
print_simple_histogram
(
"hash_key_size"
,
hash_key_size_histogram
);
print_simple_histogram
(
"sort_key_size"
,
sort_key_size_histogram
);
print_simple_histogram
(
"value_size"
,
value_size_histogram
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录