Skip to content

Commit

Permalink
disable pool monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyu85cn committed Jan 25, 2022
1 parent 5ce75aa commit a1721eb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/storage/transaction/TransactionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ bool TransactionManager::start() {
}
scanPrimes(spaceId, partId, termId);
}
monitorPoolStat(exec_.get(), "exec of Transaction Manager");
statThread_ = std::thread(&TransactionManager::bgPrintPoolStat, this);
return true;
}

Expand Down Expand Up @@ -74,9 +72,6 @@ void TransactionManager::stop() {

void TransactionManager::join() {
LOG(INFO) << "TransactionManager join()";
if (statThread_.joinable()) {
statThread_.join();
}
exec_->stop();
}

Expand Down
1 change: 0 additions & 1 deletion src/storage/transaction/TransactionManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ class TransactionManager {
void bgPrintPoolStat();
std::string dumpPoolStat(folly::ThreadPoolExecutor* pool, const std::string& msg);

std::thread statThread_;
bool stop_{false};
std::vector<std::pair<folly::ThreadPoolExecutor*, std::string>> monPoolStats_;

Expand Down

0 comments on commit a1721eb

Please sign in to comment.