提交 042d4f8d 编写于 作者: Z zhao liwei 提交者: wutao1

refactor: remove the assert in get_app_stat (#416)

上级 fa382374
......@@ -715,9 +715,10 @@ get_app_stat(shell_context *sc, const std::string &app_name, std::vector<row_dat
for (dsn::perf_counter_metric &m : info.counters) {
int32_t app_id_x, partition_index_x;
std::string counter_name;
bool parse_ret = parse_app_pegasus_perf_counter_name(
m.name, app_id_x, partition_index_x, counter_name);
dassert(parse_ret, "name = %s", m.name.c_str());
if (!parse_app_pegasus_perf_counter_name(
m.name, app_id_x, partition_index_x, counter_name)) {
continue;
}
auto find = app_partitions.find(app_id_x);
if (find == app_partitions.end())
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册