Skip to content

Commit

Permalink
stop executor
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchengchenghh committed Jan 19, 2025
1 parent ca26afa commit 6d8a602
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion velox/common/file/FileSystems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ class LocalFileSystem : public FileSystem {
"LocalReadahead"))
: nullptr) {}

~LocalFileSystem() override {}
~LocalFileSystem() override {
if (executor_) {
executor_->stop();
LOG(INFO) << "Executor " << executor_->getName() << " stopped.";
}
}

std::string name() const override {
return "Local FS";
Expand Down

0 comments on commit 6d8a602

Please sign in to comment.