Skip to content

Commit

Permalink
Update src/shell/commands/debugger.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Wang <[email protected]>
  • Loading branch information
acelyc111 and empiredan committed Dec 12, 2023
1 parent 270b706 commit 29e681c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/shell/commands/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,8 @@ bool mlog_dump(command_executor *e, shell_context *sc, arguments args)
return false;
}

char splitters[] = {'\\', '/', 0};
auto slog_dir_tmp = plog_dir;
std::string name =
dsn::utils::get_last_component(dirname((char *)slog_dir_tmp.c_str()), splitters);
const auto replica_path = std::filesystem::path(plog_dir).parent_path();
const auto name = replica_path.filename().string();
if (name.empty()) {
fmt::print(stderr, "ERROR: '{}' is not a valid plog directory\n", plog_dir);
return false;
Expand Down

0 comments on commit 29e681c

Please sign in to comment.