Skip to content

Commit

Permalink
refactor: remove the assert in get_app_stat (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhao liwei authored and qinzuoyan committed Nov 7, 2019
1 parent 4040797 commit b16fe0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/shell/command_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b16fe0b

Please sign in to comment.