Skip to content

Commit

Permalink
Update dbms/src/Flash/Mpp/MPPTaskScheduleEntry.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: SeaRise <[email protected]>
  • Loading branch information
windtalker and SeaRise authored Sep 28, 2022
1 parent 353b23c commit 210fe65
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dbms/src/Flash/Mpp/MPPTaskScheduleEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ const MPPTaskId & MPPTaskScheduleEntry::getMPPTaskId() const

int MPPTaskScheduleEntry::getNeededThreads() const
{
if (needed_threads == 0)
{
throw Exception(" the needed_threads of task " + id.toString() + " is not initialized!");
}
RUNTIME_CHECK_MSG(needed_threads > 0, "the needed_threads of task {} is not initialized!", id.toString());
return needed_threads;
}

Expand Down

0 comments on commit 210fe65

Please sign in to comment.