Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Incubator Pegasus
提交
268cc1ed
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,发现更多精彩内容 >>
未验证
提交
268cc1ed
编写于
4月 19, 2018
作者:
Q
QinZuoyan
提交者:
GitHub
4月 19, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
shell: fix error message print format (#19)
上级
58a4d4ae
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
7 deletion
+7
-7
rdsn
rdsn
+1
-1
src/shell/commands.h
src/shell/commands.h
+6
-6
未找到文件。
rdsn
@
af9aaee6
比较
f7b05110
...
af9aaee6
Subproject commit
f7b051101535ed3980ac90d586d97d6292d9dc97
Subproject commit
af9aaee6ea91f1ec553248d5689270913086b5ae
src/shell/commands.h
浏览文件 @
268cc1ed
...
...
@@ -1177,7 +1177,7 @@ inline bool multi_del_range(command_executor *e, shell_context *sc, arguments ar
case
'o'
:
file
=
fopen
(
optarg
,
"w"
);
if
(
!
file
)
{
fprintf
(
stderr
,
"open filename %s failed"
,
optarg
);
fprintf
(
stderr
,
"open filename %s failed
\n
"
,
optarg
);
return
false
;
}
break
;
...
...
@@ -1409,7 +1409,7 @@ inline bool hash_scan(command_executor *e, shell_context *sc, arguments args)
case
'o'
:
file
=
fopen
(
optarg
,
"w"
);
if
(
!
file
)
{
fprintf
(
stderr
,
"open filename %s failed"
,
optarg
);
fprintf
(
stderr
,
"open filename %s failed
\n
"
,
optarg
);
return
false
;
}
break
;
...
...
@@ -1591,7 +1591,7 @@ inline bool full_scan(command_executor *e, shell_context *sc, arguments args)
case
'o'
:
file
=
fopen
(
optarg
,
"w"
);
if
(
!
file
)
{
fprintf
(
stderr
,
"open filename %s failed"
,
optarg
);
fprintf
(
stderr
,
"open filename %s failed
\n
"
,
optarg
);
return
false
;
}
break
;
...
...
@@ -3313,7 +3313,7 @@ inline bool query_restore_status(command_executor *e, shell_context *sc, argumen
int32_t
restore_app_id
=
boost
::
lexical_cast
<
int32_t
>
(
args
.
argv
[
1
]);
if
(
restore_app_id
<=
0
)
{
fprintf
(
stderr
,
"invalid restore_app_id(%d)"
,
restore_app_id
);
fprintf
(
stderr
,
"invalid restore_app_id(%d)
\n
"
,
restore_app_id
);
return
false
;
}
static
struct
option
long_options
[]
=
{{
"detailed"
,
no_argument
,
0
,
'd'
},
{
0
,
0
,
0
,
0
}};
...
...
@@ -3479,7 +3479,7 @@ inline bool query_backup_policy(command_executor *e, shell_context *sc, argument
::
dsn
::
utils
::
split_args
(
optarg
,
names
,
','
);
for
(
const
auto
&
policy_name
:
names
)
{
if
(
policy_name
.
empty
())
{
fprintf
(
stderr
,
"invalid, empty policy_name, just ignore"
);
fprintf
(
stderr
,
"invalid, empty policy_name, just ignore
\n
"
);
continue
;
}
else
{
policy_names
.
emplace_back
(
policy_name
);
...
...
@@ -3498,7 +3498,7 @@ inline bool query_backup_policy(command_executor *e, shell_context *sc, argument
}
}
if
(
policy_names
.
empty
())
{
fprintf
(
stderr
,
"empty policy_name, please assign policy_name you want to query"
);
fprintf
(
stderr
,
"empty policy_name, please assign policy_name you want to query
\n
"
);
return
false
;
}
::
dsn
::
error_code
ret
=
sc
->
ddl_client
->
query_backup_policy
(
policy_names
,
backup_info_cnt
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录