Skip to content

Commit

Permalink
fix crash when stopping because of lac reset (#8637)
Browse files Browse the repository at this point in the history
close #8550
  • Loading branch information
guo-shaoge authored Jan 2, 2024
1 parent 7d6bec8 commit f6ea813
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dbms/src/Server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1774,8 +1774,11 @@ int Server::main(const std::vector<std::string> & /*args*/)
{
assert(TaskScheduler::instance);
TaskScheduler::instance.reset();
// Stop LAC instead of reset, because storage layer still needs it.
// Workload will not be throttled when LAC is stopped.
// It's ok because flash service has already been destructed, so throllting is meaningless.
assert(LocalAdmissionController::global_instance);
LocalAdmissionController::global_instance.reset();
LocalAdmissionController::global_instance->stop();
}
});

Expand Down

0 comments on commit f6ea813

Please sign in to comment.