Skip to content

Commit

Permalink
Add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
JinheLin committed Jan 2, 2024
1 parent 3632feb commit 0b717e8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ SegmentReadTaskScheduler::~SegmentReadTaskScheduler()

void SegmentReadTaskScheduler::add(const SegmentReadTaskPoolPtr & pool)
{
assert(pool != nullptr);
Stopwatch sw_add;
// `add_lock` is only used in this function to make all threads calling `add` to execute serially.
std::lock_guard add_lock(add_mtx);
Expand Down

0 comments on commit 0b717e8

Please sign in to comment.