Skip to content

Commit

Permalink
use fmt
Browse files Browse the repository at this point in the history
Signed-off-by: fzhedu <[email protected]>
  • Loading branch information
fzhedu authored and ti-chi-bot committed Mar 25, 2022
1 parent 1e127ab commit 6d5f067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbms/src/Flash/Mpp/MPPTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,11 @@ void MPPTask::scheduleOrWait()

if (schedule_state == ScheduleState::EXCEEDED)
{
throw Exception(id.toString() + " is failed to schedule because of exceeding the thread hard limit in min-tso scheduler after waiting for " + std::to_string(time_cost) + "s.");
throw Exception(fmt::format("{} is failed to schedule because of exceeding the thread hard limit in min-tso scheduler after waiting for {}s.", id.toString(), time_cost));
}
else if (schedule_state == ScheduleState::FAILED)
{
throw Exception(id.toString() + " is failed to schedule because of being cancelled in min-tso scheduler after waiting for " + std::to_string(time_cost) + "s.");
throw Exception(fmt::format("{} is failed to schedule because of being cancelled in min-tso scheduler after waiting for {}s.", id.toString(), time_cost));
}
}
LOG_FMT_INFO(log, "task waits for {} s to schedule and starts to run in parallel.", time_cost);
Expand Down

0 comments on commit 6d5f067

Please sign in to comment.