Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brother-jin committed Jun 5, 2024
1 parent 53c81c0 commit d6cb38d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pika_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ void PikaServer::SetSlowCmdThreadPoolFlag(bool flag) {
<< (ret == net::kCreateThreadError ? ": create thread error " : ": other error");
}
} else {
while (SlowCmdThreadPoolCurQueueSize() != 0) {
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
pika_slow_cmd_thread_pool_->stop_thread_pool();
}
}
Expand Down

0 comments on commit d6cb38d

Please sign in to comment.